forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI test: "elided" has just the one 'l'; exercise underscore lifetime
The files were named 'ellided-lifetimes', but the word "elided" only has one 'l' (see, e.g., https://en.wiktionary.org/wiki/elide). We add a couple lines to the test that exercise underscore lifetimes with the elided-lifetimes-in-paths lint: in the current implementation, the lint fires (as one can see in the expectation file), but it really shouldn't (notice that the message says to use an underscore lifetime!); this is to be fixed in another commit.
- Loading branch information
1 parent
1731f0a
commit 1a59677
Showing
3 changed files
with
27 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
error: hidden lifetime parameters are deprecated, try `Foo<'_>` | ||
--> $DIR/elided-lifetimes.rs:16:12 | ||
| | ||
LL | fn foo(x: &Foo) { | ||
| ^^^ | ||
| | ||
note: lint level defined here | ||
--> $DIR/elided-lifetimes.rs:12:9 | ||
| | ||
LL | #![deny(elided_lifetimes_in_paths)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: hidden lifetime parameters are deprecated, try `Foo<'_>` | ||
--> $DIR/elided-lifetimes.rs:20:16 | ||
| | ||
LL | fn bar(x: &Foo<'_>) { | ||
| ^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|
This file was deleted.
Oops, something went wrong.