about summary refs log tree commit diff
path: root/src/test/ui/lint/bare-trait-objects-path.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-07-10 10:00:54 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-12-04 23:13:58 +0100
commit646f58a7e1985ca935c3d95a003f23fb81831dd3 (patch)
tree654e3c43ad941d71481b598e73faf3583af56c50 /src/test/ui/lint/bare-trait-objects-path.rs
parent887999d163bace7e79370b952bdd1f930ff4cdd5 (diff)
downloadrust-646f58a7e1985ca935c3d95a003f23fb81831dd3.tar.gz
rust-646f58a7e1985ca935c3d95a003f23fb81831dd3.zip
Lint bare traits in AstConv.
Diffstat (limited to 'src/test/ui/lint/bare-trait-objects-path.rs')
-rw-r--r--src/test/ui/lint/bare-trait-objects-path.rs2
1 files changed, 2 insertions, 0 deletions
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
 }