diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-04-16 11:06:51 +0200 | 
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-04-16 11:06:51 +0200 | 
| commit | cd8392dd9932c30f5e6e7b42a1f3ab9e90ab11f8 (patch) | |
| tree | 592d7dbcc5d6eb1ca264d961a168780e65e108b2 /src/test/ui/lint/bare-trait-objects-path.rs | |
| parent | 43f9d0ae7e0733b1e4e7ad84165ddd57144f2db7 (diff) | |
| download | rust-cd8392dd9932c30f5e6e7b42a1f3ab9e90ab11f8.tar.gz rust-cd8392dd9932c30f5e6e7b42a1f3ab9e90ab11f8.zip | |
Fix tests
Diffstat (limited to 'src/test/ui/lint/bare-trait-objects-path.rs')
| -rw-r--r-- | src/test/ui/lint/bare-trait-objects-path.rs | 12 | 
1 files changed, 9 insertions, 3 deletions
| diff --git a/src/test/ui/lint/bare-trait-objects-path.rs b/src/test/ui/lint/bare-trait-objects-path.rs index 4c961e998df..74f838e9ed1 100644 --- a/src/test/ui/lint/bare-trait-objects-path.rs +++ b/src/test/ui/lint/bare-trait-objects-path.rs @@ -11,8 +11,14 @@ trait Dyn {} impl Assoc for dyn Dyn {} fn main() { - Dyn::func(); //~ WARN trait objects without an explicit `dyn` are deprecated - ::Dyn::func(); //~ WARN trait objects without an explicit `dyn` are deprecated - Dyn::CONST; //~ WARN trait objects without an explicit `dyn` are deprecated + Dyn::func(); + //~^ WARN trait objects without an explicit `dyn` are deprecated + //~| WARN this was previously accepted by the compiler + ::Dyn::func(); + //~^ WARN trait objects without an explicit `dyn` are deprecated + //~| WARN this was previously accepted by the compiler + Dyn::CONST; + //~^ WARN trait objects without an explicit `dyn` are deprecated + //~| WARN this was previously accepted by the compiler let _: Dyn::Ty; //~ ERROR ambiguous associated type } | 
