Skip to content

Commit 6b8dace

Browse files
committed
Improve comments on ! tests
1 parent 5bd54a2 commit 6b8dace

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/test/compile-fail/never-fallback.rs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ impl Flah {
3030
}
3131

3232
fn doit() -> Result<(), ()> {
33+
// The type of _ is unconstrained here and should default to !
3334
let _ = try!(Flah.flah()); //~ ERROR the trait bound
3435
Ok(())
3536
}

src/test/run-pass/unit-fallback.rs

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ impl Flah {
2727
}
2828

2929
fn doit() -> Result<(), ()> {
30+
// The type of _ is unconstrained here and should default to ()
3031
let _ = try!(Flah.flah());
3132
Ok(())
3233
}

0 commit comments

Comments
 (0)