mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
test: Check close window rendering
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
pub struct S;
|
||||
impl S {
|
||||
fn method(&self) {}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
error[E0624]: method `method` is private
|
||||
--> $DIR/close_window.rs:9:7
|
||||
|
|
||||
LL | s.method();
|
||||
| ^^^^^^ private method
|
||||
|
|
||||
::: $DIR/auxiliary/close_window.rs:3:5
|
||||
|
|
||||
LL | fn method(&self) {}
|
||||
| ---------------- private method defined here
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0624`.
|
||||
@@ -0,0 +1,11 @@
|
||||
//@ aux-build:close_window.rs
|
||||
//@ revisions: ascii unicode
|
||||
//@[unicode] compile-flags: -Zunstable-options --error-format=human-unicode
|
||||
|
||||
extern crate close_window;
|
||||
|
||||
fn main() {
|
||||
let s = close_window::S;
|
||||
s.method();
|
||||
//[ascii]~^ ERROR method `method` is private
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
error[E0624]: method `method` is private
|
||||
╭▸ $DIR/close_window.rs:9:7
|
||||
│
|
||||
LL │ s.method();
|
||||
╰╴ ━━━━━━ private method
|
||||
│
|
||||
⸬ $DIR/auxiliary/close_window.rs:3:5
|
||||
│
|
||||
LL │ fn method(&self) {}
|
||||
╰╴ ──────────────── private method defined here
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0624`.
|
||||
Reference in New Issue
Block a user