summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/suggest-trait-items.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/suggestions/suggest-trait-items.rs
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/suggestions/suggest-trait-items.rs')
-rw-r--r--src/test/ui/suggestions/suggest-trait-items.rs48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/test/ui/suggestions/suggest-trait-items.rs b/src/test/ui/suggestions/suggest-trait-items.rs
deleted file mode 100644
index 9d42a7342..000000000
--- a/src/test/ui/suggestions/suggest-trait-items.rs
+++ /dev/null
@@ -1,48 +0,0 @@
-trait Foo {
- type Type;
-
- fn foo();
- fn bar();
- fn qux();
-}
-
-struct A;
-
-impl Foo for A {
-//~^ ERROR not all trait items implemented
- type Typ = ();
- //~^ ERROR type `Typ` is not a member of trait
- //~| HELP there is an associated type with a similar name
-
- fn fooo() {}
- //~^ ERROR method `fooo` is not a member of trait
- //~| HELP there is an associated function with a similar name
-
- fn barr() {}
- //~^ ERROR method `barr` is not a member of trait
- //~| HELP there is an associated function with a similar name
-
- fn quux() {}
- //~^ ERROR method `quux` is not a member of trait
- //~| HELP there is an associated function with a similar name
-}
-//~^ HELP implement the missing item
-//~| HELP implement the missing item
-//~| HELP implement the missing item
-//~| HELP implement the missing item
-
-trait Bar {
- const Const: i32;
-}
-
-struct B;
-
-impl Bar for B {
-//~^ ERROR not all trait items implemented
- const Cnst: i32 = 0;
- //~^ ERROR const `Cnst` is not a member of trait
- //~| HELP there is an associated constant with a similar name
-}
-//~^ HELP implement the missing item
-
-fn main() {}