]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-lifetime/object-lifetime-default-from-box-error.stderr
Move parse-fail tests to UI
[rust.git] / src / test / ui / object-lifetime / object-lifetime-default-from-box-error.stderr
1 error[E0621]: explicit lifetime required in the type of `ss`
2   --> $DIR/object-lifetime-default-from-box-error.rs:28:5
3    |
4 LL | fn load(ss: &mut SomeStruct) -> Box<SomeTrait> {
5    |             --------------- help: add explicit lifetime `'static` to the type of `ss`: `&mut SomeStruct<'static>`
6 ...
7 LL |     ss.r //~ ERROR explicit lifetime required in the type of `ss` [E0621]
8    |     ^^^^ lifetime `'static` required
9
10 error[E0621]: explicit lifetime required in the type of `ss`
11   --> $DIR/object-lifetime-default-from-box-error.rs:41:12
12    |
13 LL | fn store1<'b>(ss: &mut SomeStruct, b: Box<SomeTrait+'b>) {
14    |                   --------------- help: add explicit lifetime `'b` to the type of `ss`: `&mut SomeStruct<'b>`
15 ...
16 LL |     ss.r = b; //~ ERROR 41:12: 41:13: explicit lifetime required in the type of `ss` [E0621]
17    |            ^ lifetime `'b` required
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0621`.