]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/error-codes/E0261.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / error-codes / E0261.stderr
index 0eab2dc0ee05f891e01f74514c246f58f4e5392b..33d74feead513bf34132804999decdc4b4efd80f 100644 (file)
@@ -5,6 +5,8 @@ LL | fn foo(x: &'a str) { }
    |       -    ^^ undeclared lifetime
    |       |
    |       help: consider introducing lifetime `'a` here: `<'a>`
+   |
+   = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
 
 error[E0261]: use of undeclared lifetime name `'a`
   --> $DIR/E0261.rs:5:9
@@ -13,6 +15,8 @@ LL | struct Foo {
    |           - help: consider introducing lifetime `'a` here: `<'a>`
 LL |     x: &'a str,
    |         ^^ undeclared lifetime
+   |
+   = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
 
 error: aborting due to 2 previous errors