diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2022-10-27 17:33:41 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2022-11-03 15:09:02 +0000 |
| commit | 3aef6c6a54e85ac5cc5e004669404d71be22aafb (patch) | |
| tree | 2b3e84cab32e07bc2712111531be89743fa5fe87 /src/test | |
| parent | 30b6fe37a6d447a647f2608562aff7b1758bce54 (diff) | |
| download | rust-3aef6c6a54e85ac5cc5e004669404d71be22aafb.tar.gz rust-3aef6c6a54e85ac5cc5e004669404d71be22aafb.zip | |
roll another resolution logic in rustdoc
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs | 5 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.stderr | 15 |
2 files changed, 1 insertions, 19 deletions
diff --git a/src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs b/src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs index e58bba64058..94ea0e93bf6 100644 --- a/src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs +++ b/src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs @@ -1,3 +1,4 @@ +// check-pass // This test ensures that rustdoc does not panic on inherented associated types // that are referred to without fully-qualified syntax. @@ -9,8 +10,4 @@ pub struct Struct; impl Struct { pub type AssocTy = usize; pub const AssocConst: Self::AssocTy = 42; - //~^ ERROR ambiguous associated type - //~| HELP use fully-qualified syntax - //~| ERROR ambiguous associated type - //~| HELP use fully-qualified syntax } diff --git a/src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.stderr b/src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.stderr deleted file mode 100644 index b963b722f66..00000000000 --- a/src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error[E0223]: ambiguous associated type - --> $DIR/ambiguous-inherent-assoc-ty.rs:11:27 - | -LL | pub const AssocConst: Self::AssocTy = 42; - | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<Struct as Trait>::AssocTy` - -error[E0223]: ambiguous associated type - --> $DIR/ambiguous-inherent-assoc-ty.rs:11:27 - | -LL | pub const AssocConst: Self::AssocTy = 42; - | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<Struct as Trait>::AssocTy` - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0223`. |
