test: Check close window rendering

This commit is contained in:
Scott Schafer
2025-07-22 05:14:37 -06:00
parent 3048886e59
commit 4643d9ad6d
4 changed files with 43 additions and 0 deletions
@@ -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`.
+11
View File
@@ -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`.