Skip to content

Commit 2cdc7af

Browse files
committed
Use NOTE instead of error-pattern directive
1 parent 94bdeb6 commit 2cdc7af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/compile-fail/rfc-1937-termination-trait/termination-trait-main-i32.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:`main` can only return types like `()` that implement std::process::Termination, no
1211
fn main() -> i32 {
12+
//~^ ERROR `i32: std::process::Termination` is not satisfied
13+
//~| NOTE `main` can only return types like `()` that implement std::process::Termination, not `i32`
1314
0
1415
}

0 commit comments

Comments
 (0)