diff options
| author | Basile Desloges <basile.desloges@gmail.com> | 2018-08-31 19:27:11 +0200 |
|---|---|---|
| committer | Basile Desloges <basile.desloges@gmail.com> | 2018-09-01 12:58:18 +0200 |
| commit | b01550a7185574a7b97699aaf39e1a9cb6e60f72 (patch) | |
| tree | a3ec8d4a7f4a28482315a2aca896fbaa1f291461 /src/test/ui/impl-trait | |
| parent | e27bae09ca4947ea20520ba7a7f1737559f8dd0f (diff) | |
Update tests
Diffstat (limited to 'src/test/ui/impl-trait')
3 files changed, 0 insertions, 48 deletions
diff --git a/src/test/ui/impl-trait/must_outlive_least_region_or_bound.nll.stderr b/src/test/ui/impl-trait/must_outlive_least_region_or_bound.nll.stderr index 97cb2cc16e4..1e3e997b111 100644 --- a/src/test/ui/impl-trait/must_outlive_least_region_or_bound.nll.stderr +++ b/src/test/ui/impl-trait/must_outlive_least_region_or_bound.nll.stderr @@ -1,33 +1,3 @@ -warning: not reporting region error due to nll - --> $DIR/must_outlive_least_region_or_bound.rs:13:35 - | -LL | fn elided(x: &i32) -> impl Copy { x } - | ^ - -warning: not reporting region error due to nll - --> $DIR/must_outlive_least_region_or_bound.rs:16:44 - | -LL | fn explicit<'a>(x: &'a i32) -> impl Copy { x } - | ^ - -warning: not reporting region error due to nll - --> $DIR/must_outlive_least_region_or_bound.rs:22:69 - | -LL | fn with_bound<'a>(x: &'a i32) -> impl LifetimeTrait<'a> + 'static { x } - | ^ - -warning: not reporting region error due to nll - --> $DIR/must_outlive_least_region_or_bound.rs:29:5 - | -LL | move |_| println!("{}", y) - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - -warning: not reporting region error due to nll - --> $DIR/must_outlive_least_region_or_bound.rs:32:51 - | -LL | fn ty_param_wont_outlive_static<T:Debug>(x: T) -> impl Debug + 'static { - | ^^^^^^^^^^^^^^^^^^^^ - error[E0621]: explicit lifetime required in the type of `x` --> $DIR/must_outlive_least_region_or_bound.rs:13:35 | diff --git a/src/test/ui/impl-trait/static-return-lifetime-infered.nll.stderr b/src/test/ui/impl-trait/static-return-lifetime-infered.nll.stderr index c1e12978c51..2568eb2ed3f 100644 --- a/src/test/ui/impl-trait/static-return-lifetime-infered.nll.stderr +++ b/src/test/ui/impl-trait/static-return-lifetime-infered.nll.stderr @@ -1,15 +1,3 @@ -warning: not reporting region error due to nll - --> $DIR/static-return-lifetime-infered.rs:17:16 - | -LL | self.x.iter().map(|a| a.0) - | ^^^^ - -warning: not reporting region error due to nll - --> $DIR/static-return-lifetime-infered.rs:21:16 - | -LL | self.x.iter().map(|a| a.0) - | ^^^^ - error: unsatisfied lifetime constraints --> $DIR/static-return-lifetime-infered.rs:17:9 | diff --git a/src/test/ui/impl-trait/type_parameters_captured.nll.stderr b/src/test/ui/impl-trait/type_parameters_captured.nll.stderr index 823ee446729..3c2c86fffde 100644 --- a/src/test/ui/impl-trait/type_parameters_captured.nll.stderr +++ b/src/test/ui/impl-trait/type_parameters_captured.nll.stderr @@ -1,9 +1,3 @@ -warning: not reporting region error due to nll - --> $DIR/type_parameters_captured.rs:17:20 - | -LL | fn foo<T>(x: T) -> impl Any + 'static { - | ^^^^^^^^^^^^^^^^^^ - error[E0310]: the parameter type `T` may not live long enough --> $DIR/type_parameters_captured.rs:19:5 | |
