Skip to content

Commit 4643d9a

Browse files
committed
test: Check close window rendering
1 parent 3048886 commit 4643d9a

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub struct S;
2+
impl S {
3+
fn method(&self) {}
4+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error[E0624]: method `method` is private
2+
--> $DIR/close_window.rs:9:7
3+
|
4+
LL | s.method();
5+
| ^^^^^^ private method
6+
|
7+
::: $DIR/auxiliary/close_window.rs:3:5
8+
|
9+
LL | fn method(&self) {}
10+
| ---------------- private method defined here
11+
12+
error: aborting due to 1 previous error
13+
14+
For more information about this error, try `rustc --explain E0624`.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//@ aux-build:close_window.rs
2+
//@ revisions: ascii unicode
3+
//@[unicode] compile-flags: -Zunstable-options --error-format=human-unicode
4+
5+
extern crate close_window;
6+
7+
fn main() {
8+
let s = close_window::S;
9+
s.method();
10+
//[ascii]~^ ERROR method `method` is private
11+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error[E0624]: method `method` is private
2+
╭▸ $DIR/close_window.rs:9:7
3+
4+
LL │ s.method();
5+
╰╴ ━━━━━━ private method
6+
7+
⸬ $DIR/auxiliary/close_window.rs:3:5
8+
9+
LL │ fn method(&self) {}
10+
╰╴ ──────────────── private method defined here
11+
12+
error: aborting due to 1 previous error
13+
14+
For more information about this error, try `rustc --explain E0624`.

0 commit comments

Comments
 (0)