diff options
| author | Taylor Cramer <cramertj@google.com> | 2018-03-28 17:25:39 +0200 |
|---|---|---|
| committer | Taylor Cramer <cramertj@google.com> | 2018-03-29 00:27:50 +0200 |
| commit | e6e6bd27d563b9a53687433feb3d4d4672dafd66 (patch) | |
| tree | 80905423ecc1e04a3fd2fbe2b3ebac52b030da8c /src/test/ui/error-codes | |
| parent | e5277c1457d397f22ba18a1d40c1318729becbb4 (diff) | |
| download | rust-e6e6bd27d563b9a53687433feb3d4d4672dafd66.tar.gz rust-e6e6bd27d563b9a53687433feb3d4d4672dafd66.zip | |
Stabilize underscore lifetimes
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0637.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0637.stderr | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/test/ui/error-codes/E0637.rs b/src/test/ui/error-codes/E0637.rs index 455529b088a..ee6a978d169 100644 --- a/src/test/ui/error-codes/E0637.rs +++ b/src/test/ui/error-codes/E0637.rs @@ -7,7 +7,6 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(underscore_lifetimes)] struct Foo<'a: '_>(&'a u8); //~ ERROR invalid lifetime bound name: `'_` fn foo<'a: '_>(_: &'a u8) {} //~ ERROR invalid lifetime bound name: `'_` diff --git a/src/test/ui/error-codes/E0637.stderr b/src/test/ui/error-codes/E0637.stderr index b8c926efb45..245729376df 100644 --- a/src/test/ui/error-codes/E0637.stderr +++ b/src/test/ui/error-codes/E0637.stderr @@ -1,17 +1,17 @@ error[E0637]: invalid lifetime bound name: `'_` - --> $DIR/E0637.rs:12:16 + --> $DIR/E0637.rs:11:16 | LL | struct Foo<'a: '_>(&'a u8); //~ ERROR invalid lifetime bound name: `'_` | ^^ `'_` is a reserved lifetime name error[E0637]: invalid lifetime bound name: `'_` - --> $DIR/E0637.rs:13:12 + --> $DIR/E0637.rs:12:12 | LL | fn foo<'a: '_>(_: &'a u8) {} //~ ERROR invalid lifetime bound name: `'_` | ^^ `'_` is a reserved lifetime name error[E0637]: invalid lifetime bound name: `'_` - --> $DIR/E0637.rs:16:10 + --> $DIR/E0637.rs:15:10 | LL | impl<'a: '_> Bar<'a> { //~ ERROR invalid lifetime bound name: `'_` | ^^ `'_` is a reserved lifetime name |
