]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/E0688.stderr
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / in-band-lifetimes / E0688.stderr
1 error[E0688]: cannot mix in-band and explicit lifetime definitions
2   --> $DIR/E0688.rs:4:28
3    |
4 LL | fn foo<'a>(x: &'a u32, y: &'b u32) {}
5    |        --                  ^^ in-band lifetime definition here
6    |        |
7    |        explicit lifetime definition here
8
9 error[E0688]: cannot mix in-band and explicit lifetime definitions
10   --> $DIR/E0688.rs:9:44
11    |
12 LL |     fn bar<'b>(x: &'a u32, y: &'b u32, z: &'c u32) {}
13    |            --                              ^^ in-band lifetime definition here
14    |            |
15    |            explicit lifetime definition here
16
17 error[E0688]: cannot mix in-band and explicit lifetime definitions
18   --> $DIR/E0688.rs:12:14
19    |
20 LL | impl<'b> Foo<'a> {
21    |      --      ^^ in-band lifetime definition here
22    |      |
23    |      explicit lifetime definition here
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0688`.