Match against friendly error message
This commit is contained in:
parent
e5a55e7440
commit
be29e52c5a
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
' '
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue