]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/elide-errors-on-mismatched-tuple.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / elide-errors-on-mismatched-tuple.rs
index e68358fd978bfd3dece15b47ec78e6de61277c83..7d87b0a7756b123013bdc5fa9ad1c63b88d7d0f1 100644 (file)
@@ -13,6 +13,6 @@ fn new() -> Self {
 fn main() {
     let (a, b, c) = (A::new(), A::new()); // This tuple is 2 elements, should be three
     //~^ ERROR mismatched types
-    let ts: Vec<&T> = vec![&a, &b, &c];
+    let ts: Vec<&dyn T> = vec![&a, &b, &c];
     // There is no E0277 error above, as `a`, `b` and `c` are `TyErr`
 }