Skip to content

Commit 9e6991c

Browse files
Modify tests
1 parent f966112 commit 9e6991c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
fn main() -> i32 {
1212
//~^ ERROR `main` has invalid return type `i32`
13-
//~| NOTE `main` can only return types that implement std::process::Termination
13+
//~| NOTE `main` can only return types that implement `std::process::Termination`
1414
//~| HELP consider using `()`, or a `Result`
1515
0
1616
}

src/test/ui/rfc-1937-termination-trait/termination-trait-main-wrong-type.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0277]: `main` has invalid return type `char`
22
--> $DIR/termination-trait-main-wrong-type.rs:11:14
33
|
44
LL | fn main() -> char { //~ ERROR
5-
| ^^^^ `main` can only return types that implement std::process::Termination
5+
| ^^^^ `main` can only return types that implement `std::process::Termination`
66
|
77
= help: consider using `()`, or a `Result`
88

0 commit comments

Comments
 (0)