]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0496.stderr
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0496.stderr
1 error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
2   --> $DIR/E0496.rs:6:10
3    |
4 LL | impl<'a> Foo<'a> {
5    |      -- first declared here
6 LL |     fn f<'a>(x: &'a i32) {
7    |          ^^ lifetime 'a already in scope
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0496`.