]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/non_copy_const.rs
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / non_copy_const.rs
index 00cbcaeacb9f7d56af93b2f8b675d1997ee3a05e..46cbb3fee35abeaa59a0ea42a19403abb1d3fdea 100644 (file)
@@ -27,7 +27,7 @@ macro_rules! declare_const {
 const COW: Cow<str> = Cow::Borrowed("abcdef");
 //^ note: a const item of Cow is used in the `postgres` package.
 
-const NO_ANN: &Display = &70;
+const NO_ANN: &dyn Display = &70;
 
 static STATIC_TUPLE: (AtomicUsize, String) = (ATOMIC, STRING);
 //^ there should be no lints on this line