about summary refs log tree commit diff
path: root/tests/ui/issues/issue-40288-2.stderr
blob: 81cb7cdd51ff68aba5bd7f51f697684e613e99ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error[E0621]: explicit lifetime required in the type of `y`
  --> $DIR/issue-40288-2.rs:9:5
   |
LL |     out[0]
   |     ^^^^^^ lifetime `'a` required
   |
help: add explicit lifetime `'a` to the type of `y`
   |
LL | fn lifetime_transmute_slice<'a, T: ?Sized>(x: &'a T, y: &'a T) -> &'a T {
   |                                                          ++

error[E0621]: explicit lifetime required in the type of `y`
  --> $DIR/issue-40288-2.rs:24:5
   |
LL |     out.head
   |     ^^^^^^^^ lifetime `'a` required
   |
help: add explicit lifetime `'a` to the type of `y`
   |
LL | fn lifetime_transmute_struct<'a, T: ?Sized>(x: &'a T, y: &'a T) -> &'a T {
   |                                                           ++

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0621`.