summaryrefslogtreecommitdiffstats
path: root/tests/ui/dst/dst-bad-assign.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/dst/dst-bad-assign.rs')
-rw-r--r--tests/ui/dst/dst-bad-assign.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/dst/dst-bad-assign.rs b/tests/ui/dst/dst-bad-assign.rs
index 496e01ae0..c55fb2c3e 100644
--- a/tests/ui/dst/dst-bad-assign.rs
+++ b/tests/ui/dst/dst-bad-assign.rs
@@ -34,7 +34,7 @@ pub fn main() {
let z: Box<dyn ToBar> = Box::new(Bar1 {f: 36});
f5.ptr = Bar1 {f: 36};
//~^ ERROR mismatched types
- //~| expected trait object `dyn ToBar`, found struct `Bar1`
+ //~| expected `dyn ToBar`, found `Bar1`
//~| expected trait object `dyn ToBar`
//~| found struct `Bar1`
//~| ERROR the size for values of type