Improve comments on ! tests

This commit is contained in:
Andrew Cann 2016-08-12 02:59:19 +08:00
parent 5bd54a2468
commit 6b8dacee9e
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ impl Flah {
}
fn doit() -> Result<(), ()> {
// The type of _ is unconstrained here and should default to !
let _ = try!(Flah.flah()); //~ ERROR the trait bound
Ok(())
}

View File

@ -27,6 +27,7 @@ impl Flah {
}
fn doit() -> Result<(), ()> {
// The type of _ is unconstrained here and should default to ()
let _ = try!(Flah.flah());
Ok(())
}