Improve comments on ! tests
This commit is contained in:
parent
5bd54a2468
commit
6b8dacee9e
2 changed files with 2 additions and 0 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ impl Flah {
|
|||
}
|
||||
|
||||
fn doit() -> Result<(), ()> {
|
||||
// The type of _ is unconstrained here and should default to ()
|
||||
let _ = try!(Flah.flah());
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue