]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-call-lifetime-args.stderr
move an `assert!` to the right place
[rust.git] / src / test / ui / methods / method-call-lifetime-args.stderr
1 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
2   --> $DIR/method-call-lifetime-args.rs:9:15
3    |
4 LL |     S::late::<'static>(S, &0, &0);
5    |               ^^^^^^^
6    |
7 note: the late bound lifetime parameter is introduced here
8   --> $DIR/method-call-lifetime-args.rs:4:13
9    |
10 LL |     fn late<'a, 'b>(self, _: &'a u8, _: &'b u8) {}
11    |             ^^
12
13 error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
14   --> $DIR/method-call-lifetime-args.rs:11:24
15    |
16 LL |     S::late_implicit::<'static>(S, &0, &0);
17    |                        ^^^^^^^
18    |
19 note: the late bound lifetime parameter is introduced here
20   --> $DIR/method-call-lifetime-args.rs:5:31
21    |
22 LL |     fn late_implicit(self, _: &u8, _: &u8) {}
23    |                               ^
24
25 error: aborting due to 2 previous errors
26