diff options
| author | David Wood <david@davidtw.co> | 2018-01-10 18:00:50 +0000 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2018-01-10 19:12:57 +0000 |
| commit | 1aa454e1e65cbd47d60849f274debe96226b1a5a (patch) | |
| tree | 4fc0516ecbe89265a15fb7935131e04c4b8b6903 /src/test/compile-fail/object-lifetime-default-from-box-error.rs | |
| parent | cad7b4f450e6584c4067c7a0947812625065d693 (diff) | |
| download | rust-1aa454e1e65cbd47d60849f274debe96226b1a5a.tar.gz rust-1aa454e1e65cbd47d60849f274debe96226b1a5a.zip | |
Updated other tests affected by change.
Diffstat (limited to 'src/test/compile-fail/object-lifetime-default-from-box-error.rs')
| -rw-r--r-- | src/test/compile-fail/object-lifetime-default-from-box-error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/object-lifetime-default-from-box-error.rs b/src/test/compile-fail/object-lifetime-default-from-box-error.rs index c50f425b2c0..b253612bc32 100644 --- a/src/test/compile-fail/object-lifetime-default-from-box-error.rs +++ b/src/test/compile-fail/object-lifetime-default-from-box-error.rs @@ -25,7 +25,7 @@ fn load(ss: &mut SomeStruct) -> Box<SomeTrait> { // `Box<SomeTrait>` defaults to a `'static` bound, so this return // is illegal. - ss.r //~ ERROR cannot infer an appropriate lifetime + ss.r //~ ERROR explicit lifetime required in the type of `ss` [E0621] } fn store(ss: &mut SomeStruct, b: Box<SomeTrait>) { |
