File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
examples_tests/rustc_basic Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ use std::sync::atomic::Ordering;
4
4
use ui_test:: { run_tests, Config } ;
5
5
6
6
#[ cfg( feature = "rustc" ) ]
7
+ #[ cfg_attr( test, test) ]
7
8
fn main ( ) -> ui_test:: color_eyre:: Result < ( ) > {
8
9
let config = Config :: rustc ( "examples_tests/rustc_basic" ) ;
9
10
let abort_check = config. abort_check . clone ( ) ;
Original file line number Diff line number Diff line change @@ -20,12 +20,14 @@ error[E0384]: cannot assign twice to immutable variable `x`
20
20
--> examples_tests/rustc_basic/aux_derive.rs:8:5
21
21
|
22
22
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`
27
24
8 | x = Foo;
28
25
| ^^^^^^^ cannot assign twice to immutable variable
26
+ |
27
+ help: consider making this binding mutable
28
+ |
29
+ 7 | let mut x = Foo;
30
+ | +++
29
31
30
32
error: aborting due to 1 previous error; 2 warnings emitted
31
33
Original file line number Diff line number Diff line change 1
- //@[foo] only-target- asdfasdf
1
+ //@[foo] only-target: asdfasdf
2
2
3
3
//@ revisions: foo bar
4
4
You can’t perform that action at this time.
0 commit comments