From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/privacy/privacy-ns2.stderr | 102 --------------------------------- 1 file changed, 102 deletions(-) delete mode 100644 src/test/ui/privacy/privacy-ns2.stderr (limited to 'src/test/ui/privacy/privacy-ns2.stderr') diff --git a/src/test/ui/privacy/privacy-ns2.stderr b/src/test/ui/privacy/privacy-ns2.stderr deleted file mode 100644 index 904e9013f..000000000 --- a/src/test/ui/privacy/privacy-ns2.stderr +++ /dev/null @@ -1,102 +0,0 @@ -error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar` - --> $DIR/privacy-ns2.rs:20:5 - | -LL | Bar(); - | ^^^ not a function, tuple struct or tuple variant - | -help: consider importing this function instead - | -LL | use foo2::Bar; - | - -error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar` - --> $DIR/privacy-ns2.rs:26:5 - | -LL | pub struct Baz; - | --------------- similarly named unit struct `Baz` defined here -... -LL | Bar(); - | ^^^ - | -help: a unit struct with a similar name exists - | -LL | Baz(); - | ~~~ -help: consider importing this function instead - | -LL | use foo2::Bar; - | - -error[E0573]: expected type, found function `Bar` - --> $DIR/privacy-ns2.rs:42:14 - | -LL | let _x : Bar(); - | ^^^^^ not a type - | -help: use `=` if you meant to assign - | -LL | let _x = Bar(); - | ~ -help: consider importing this trait instead - | -LL | use foo1::Bar; - | - -error[E0603]: trait `Bar` is private - --> $DIR/privacy-ns2.rs:61:15 - | -LL | use foo3::Bar; - | ^^^ private trait - | -note: the trait `Bar` is defined here - --> $DIR/privacy-ns2.rs:53:5 - | -LL | trait Bar { - | ^^^^^^^^^ - -error[E0603]: trait `Bar` is private - --> $DIR/privacy-ns2.rs:65:15 - | -LL | use foo3::Bar; - | ^^^ private trait - | -note: the trait `Bar` is defined here - --> $DIR/privacy-ns2.rs:53:5 - | -LL | trait Bar { - | ^^^^^^^^^ - -error[E0603]: trait `Bar` is private - --> $DIR/privacy-ns2.rs:72:16 - | -LL | use foo3::{Bar,Baz}; - | ^^^ private trait - | -note: the trait `Bar` is defined here - --> $DIR/privacy-ns2.rs:53:5 - | -LL | trait Bar { - | ^^^^^^^^^ - -error[E0747]: constant provided when a type was expected - --> $DIR/privacy-ns2.rs:41:18 - | -LL | let _x : Box; - | ^^^ - | - = help: `Bar` is a function item, not a type - = help: function item types cannot be named directly - -error[E0747]: constant provided when a type was expected - --> $DIR/privacy-ns2.rs:48:17 - | -LL | let _x: Box; - | ^^^ - | - = help: `Bar` is a function item, not a type - = help: function item types cannot be named directly - -error: aborting due to 8 previous errors - -Some errors have detailed explanations: E0423, E0573, E0603, E0747. -For more information about an error, try `rustc --explain E0423`. -- cgit v1.2.3