Match against friendly error message

This commit is contained in:
Tyler Mandry 2018-03-20 00:02:17 -05:00
parent e5a55e7440
commit be29e52c5a
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern:`main` can only return types that implement std::process::Termination, not `i32`
fn main() -> i32 {
//~^ ERROR the trait bound `i32: std::process::Termination` is not satisfied [E0277]
0
}

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern:`main` can only return types that implement std::process::Termination, not `char
fn main() -> char {
//~^ ERROR: the trait bound `char: std::process::Termination` is not satisfied
' '
}