]>
Commit | Line | Data |
---|---|---|
f9f354fc XL |
1 | error: lifetime may not live long enough |
2 | --> $DIR/issue-16922.rs:4:5 | |
3 | | | |
4 | LL | fn foo<T: Any>(value: &T) -> Box<dyn Any> { | |
5 | | - let's call the lifetime of this reference `'1` | |
6 | LL | Box::new(value) as Box<dyn Any> | |
7 | | ^^^^^^^^^^^^^^^ cast requires that `'1` must outlive `'static` | |
8 | ||
9 | error: aborting due to previous error | |
10 |