summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-close-associated-type-into-object.stderr
blob: f7dcaa9d97e7c83abfeacdd45494e64c036bda98 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
error[E0310]: the associated type `<T as Iter>::Item` may not live long enough
  --> $DIR/regions-close-associated-type-into-object.rs:15:5
   |
LL |     Box::new(item)
   |     ^^^^^^^^^^^^^^
   |
   = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'static`...
   = note: ...so that the type `<T as Iter>::Item` will meet its required lifetime bounds

error[E0310]: the associated type `<T as Iter>::Item` may not live long enough
  --> $DIR/regions-close-associated-type-into-object.rs:22:5
   |
LL |     Box::new(item)
   |     ^^^^^^^^^^^^^^
   |
   = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'static`...
   = note: ...so that the type `<T as Iter>::Item` will meet its required lifetime bounds

error[E0309]: the associated type `<T as Iter>::Item` may not live long enough
  --> $DIR/regions-close-associated-type-into-object.rs:28:5
   |
LL |     Box::new(item)
   |     ^^^^^^^^^^^^^^
   |
   = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'a`...
   = note: ...so that the type `<T as Iter>::Item` will meet its required lifetime bounds

error[E0309]: the associated type `<T as Iter>::Item` may not live long enough
  --> $DIR/regions-close-associated-type-into-object.rs:35:5
   |
LL |     Box::new(item)
   |     ^^^^^^^^^^^^^^
   |
   = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'a`...
   = note: ...so that the type `<T as Iter>::Item` will meet its required lifetime bounds

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0309, E0310.
For more information about an error, try `rustc --explain E0309`.