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/static | |
| parent | c78ebb7bdcfc924a20fd069891ffe1364d6814e7 (diff) | |
| download | rust-ba052bd8de1459acb6809215b0bedf4ea476ef9a.tar.gz rust-ba052bd8de1459acb6809215b0bedf4ea476ef9a.zip | |
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/static')
| -rw-r--r-- | src/test/ui/static/static-method-privacy.stderr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/static/static-method-privacy.stderr b/src/test/ui/static/static-method-privacy.stderr index 569608780de..4be1b22fc6b 100644 --- a/src/test/ui/static/static-method-privacy.stderr +++ b/src/test/ui/static/static-method-privacy.stderr @@ -1,6 +1,9 @@ error[E0624]: associated function `new` is private --> $DIR/static-method-privacy.rs:9:19 | +LL | fn new() -> S { S } + | ------------- private associated function defined here +... LL | let _ = a::S::new(); | ^^^ private associated function |
