]> git.lizzy.rs Git - rust.git/commitdiff
nit
authorlcnr <rust@lcnr.de>
Mon, 7 Feb 2022 15:35:28 +0000 (16:35 +0100)
committerlcnr <rust@lcnr.de>
Tue, 8 Feb 2022 06:26:07 +0000 (07:26 +0100)
src/test/ui/implied-bounds/hrlt-implied-trait-bounds-guard.rs

index d79f63d45975d59acec9f5072514a919fcc3d19e..d9de73a38efff0bca0b7d3cd867d464d04462d90 100644 (file)
@@ -1,7 +1,5 @@
 // A test exploiting the bug behind #25860 except with
-// implied trait bounds which currently don't exist,
-//
-// please ping @lcnr if your changes end up causing `badboi` to compile.
+// implied trait bounds which currently don't exist without `-Zchalk`.
 use std::marker::PhantomData;
 struct Foo<'a, 'b, T>(PhantomData<(&'a (), &'b (), T)>)
 where
@@ -26,6 +24,8 @@ fn cast(&'long self) -> &'short T {
 //     `T: Convert<'in_, 'out>` is not implemented
 //
 // help: needed by `Foo<'in_, 'out, T>`
+//
+// Please ping @lcnr if your changes end up causing `badboi` to compile.
 fn badboi<'in_, 'out, T>(x: Foo<'in_, 'out, T>, sadness: &'in_ T) -> &'out T {
     //~^ ERROR lifetime mismatch
     sadness.cast()