Skip to content

Commit af9e30a

Browse files
committed
nit
1 parent c965d0e commit af9e30a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/ui/implied-bounds/hrlt-implied-trait-bounds-guard.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// A test exploiting the bug behind #25860 except with
2-
// implied trait bounds which currently don't exist,
3-
//
4-
// please ping @lcnr if your changes end up causing `badboi` to compile.
2+
// implied trait bounds which currently don't exist without `-Zchalk`.
53
use std::marker::PhantomData;
64
struct Foo<'a, 'b, T>(PhantomData<(&'a (), &'b (), T)>)
75
where
@@ -26,6 +24,8 @@ impl<'long: 'short, 'short, T> Convert<'long, 'short> for T {
2624
// `T: Convert<'in_, 'out>` is not implemented
2725
//
2826
// help: needed by `Foo<'in_, 'out, T>`
27+
//
28+
// Please ping @lcnr if your changes end up causing `badboi` to compile.
2929
fn badboi<'in_, 'out, T>(x: Foo<'in_, 'out, T>, sadness: &'in_ T) -> &'out T {
3030
//~^ ERROR lifetime mismatch
3131
sadness.cast()

0 commit comments

Comments
 (0)