diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2021-07-17 11:13:50 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2021-07-19 08:43:35 -0700 |
| commit | ba052bd8de1459acb6809215b0bedf4ea476ef9a (patch) | |
| tree | f6ed28030012d73e09f041b7f94d78fced448771 /src/test/ui/associated-item | |
| parent | c78ebb7bdcfc924a20fd069891ffe1364d6814e7 (diff) | |
Various diagnostics clean ups/tweaks
* Always point at macros, including derive macros * Point at non-local items that introduce a trait requirement * On private associated item, point at definition
Diffstat (limited to 'src/test/ui/associated-item')
| -rw-r--r-- | src/test/ui/associated-item/issue-48027.stderr | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/ui/associated-item/issue-48027.stderr b/src/test/ui/associated-item/issue-48027.stderr index 92d74e38cfa..33ab4bb967a 100644 --- a/src/test/ui/associated-item/issue-48027.stderr +++ b/src/test/ui/associated-item/issue-48027.stderr @@ -16,8 +16,6 @@ LL | const X: usize; error[E0283]: type annotations needed --> $DIR/issue-48027.rs:3:32 | -LL | const X: usize; - | --------------- required by `Bar::X` LL | fn return_n(&self) -> [u8; Bar::X]; | ^^^^^^ | | @@ -26,6 +24,11 @@ LL | fn return_n(&self) -> [u8; Bar::X]; | = note: cannot satisfy `_: Bar` = note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl` +note: required by `Bar::X` + --> $DIR/issue-48027.rs:2:5 + | +LL | const X: usize; + | ^^^^^^^^^^^^^^^ error: aborting due to 2 previous errors |
