File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -182,14 +182,24 @@ fn test_whitespace_before_main() {
182
182
183
183
#[ test]
184
184
fn test_stable_toolchain ( ) {
185
- let out = rust_script ! ( "--toolchain-version" , "stable" , "tests/data/script-unstable-feature.rs" ) . unwrap ( ) ;
185
+ let out = rust_script ! (
186
+ "--toolchain-version" ,
187
+ "stable" ,
188
+ "tests/data/script-unstable-feature.rs"
189
+ )
190
+ . unwrap ( ) ;
186
191
assert ! ( out. stderr. contains( "`#![feature]` may not be used" ) ) ;
187
192
assert ! ( !out. success( ) ) ;
188
193
}
189
194
190
195
#[ test]
191
196
fn test_nightly_toolchain ( ) {
192
- let out = rust_script ! ( "--toolchain-version" , "nightly" , "tests/data/script-unstable-feature.rs" ) . unwrap ( ) ;
197
+ let out = rust_script ! (
198
+ "--toolchain-version" ,
199
+ "nightly" ,
200
+ "tests/data/script-unstable-feature.rs"
201
+ )
202
+ . unwrap ( ) ;
193
203
scan ! ( out. stdout_output( ) ;
194
204
( "`#![feature]` *may* be used!" ) => ( )
195
205
)
You can’t perform that action at this time.
0 commit comments