rust/src/test/ui/nll/ty-outlives/projection-no-regions-fn.stderr

27 lines
698 B
Plaintext
Raw Normal View History

warning: not reporting region error due to -Znll
2017-12-05 12:15:23 -06:00
--> $DIR/projection-no-regions-fn.rs:24:5
|
24 | Box::new(x.next())
| ^^^^^^^^^^^^^^^^^^
warning: not reporting region error due to -Znll
2017-12-05 12:15:23 -06:00
--> $DIR/projection-no-regions-fn.rs:40:5
|
40 | Box::new(x.next())
| ^^^^^^^^^^^^^^^^^^
error: `<T as std::iter::Iterator>::Item` does not outlive `'_#4r`
2017-12-05 12:15:23 -06:00
--> $DIR/projection-no-regions-fn.rs:24:5
|
24 | Box::new(x.next())
| ^^^^^^^^^^^^^^^^^^
error: `<T as std::iter::Iterator>::Item` does not outlive `'_#5r`
2017-12-05 12:15:23 -06:00
--> $DIR/projection-no-regions-fn.rs:40:5
|
40 | Box::new(x.next())
| ^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors