X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Flint%2Fbare-trait-objects-path.rs;h=0e2294715cd8bb1762c950efa68ec354e445b750;hb=53a95ea289941ffeacb95f2ca7a7a7f1a9aae679;hp=0a7c5a8dbd10b44b374fd8d1b67eddd049389c63;hpb=1fcd9abbb1f80a0a467d8e54b573a7ba207925c7;p=rust.git diff --git a/src/test/ui/lint/bare-trait-objects-path.rs b/src/test/ui/lint/bare-trait-objects-path.rs index 0a7c5a8dbd1..0e2294715cd 100644 --- a/src/test/ui/lint/bare-trait-objects-path.rs +++ b/src/test/ui/lint/bare-trait-objects-path.rs @@ -21,4 +21,6 @@ fn main() { //~^ WARN trait objects without an explicit `dyn` are deprecated //~| WARN this is accepted in the current edition let _: Dyn::Ty; //~ ERROR ambiguous associated type + //~^ WARN trait objects without an explicit `dyn` are deprecated + //~| WARN this is accepted in the current edition }