Skip to content

Commit 67489ea

Browse files
committed
Actuall run examples in CI and fix them
1 parent 84f2a84 commit 67489ea

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

examples/rustc_basic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::sync::atomic::Ordering;
44
use ui_test::{run_tests, Config};
55

66
#[cfg(feature = "rustc")]
7+
#[cfg_attr(test, test)]
78
fn main() -> ui_test::color_eyre::Result<()> {
89
let config = Config::rustc("examples_tests/rustc_basic");
910
let abort_check = config.abort_check.clone();

examples_tests/rustc_basic/aux_derive.stderr

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ error[E0384]: cannot assign twice to immutable variable `x`
2020
--> examples_tests/rustc_basic/aux_derive.rs:8:5
2121
|
2222
7 | let x = Foo;
23-
| -
24-
| |
25-
| first assignment to `x`
26-
| help: consider making this binding mutable: `mut x`
23+
| - first assignment to `x`
2724
8 | x = Foo;
2825
| ^^^^^^^ cannot assign twice to immutable variable
26+
|
27+
help: consider making this binding mutable
28+
|
29+
7 | let mut x = Foo;
30+
| +++
2931

3032
error: aborting due to 1 previous error; 2 warnings emitted
3133

examples_tests/rustc_basic/filtered_out.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@[foo] only-target-asdfasdf
1+
//@[foo] only-target: asdfasdf
22

33
//@ revisions: foo bar
44

0 commit comments

Comments
 (0)