summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-trait-items.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/suggestions/suggest-trait-items.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/suggestions/suggest-trait-items.stderr')
-rw-r--r--tests/ui/suggestions/suggest-trait-items.stderr74
1 files changed, 74 insertions, 0 deletions
diff --git a/tests/ui/suggestions/suggest-trait-items.stderr b/tests/ui/suggestions/suggest-trait-items.stderr
new file mode 100644
index 000000000..8bc3df7b8
--- /dev/null
+++ b/tests/ui/suggestions/suggest-trait-items.stderr
@@ -0,0 +1,74 @@
+error[E0437]: type `Typ` is not a member of trait `Foo`
+ --> $DIR/suggest-trait-items.rs:13:5
+ |
+LL | type Typ = ();
+ | ^^^^^---^^^^^^
+ | | |
+ | | help: there is an associated type with a similar name: `Type`
+ | not a member of trait `Foo`
+
+error[E0407]: method `fooo` is not a member of trait `Foo`
+ --> $DIR/suggest-trait-items.rs:17:5
+ |
+LL | fn fooo() {}
+ | ^^^----^^^^^
+ | | |
+ | | help: there is an associated function with a similar name: `foo`
+ | not a member of trait `Foo`
+
+error[E0407]: method `barr` is not a member of trait `Foo`
+ --> $DIR/suggest-trait-items.rs:21:5
+ |
+LL | fn barr() {}
+ | ^^^----^^^^^
+ | | |
+ | | help: there is an associated function with a similar name: `bar`
+ | not a member of trait `Foo`
+
+error[E0407]: method `quux` is not a member of trait `Foo`
+ --> $DIR/suggest-trait-items.rs:25:5
+ |
+LL | fn quux() {}
+ | ^^^----^^^^^
+ | | |
+ | | help: there is an associated function with a similar name: `qux`
+ | not a member of trait `Foo`
+
+error[E0438]: const `Cnst` is not a member of trait `Bar`
+ --> $DIR/suggest-trait-items.rs:42:5
+ |
+LL | const Cnst: i32 = 0;
+ | ^^^^^^----^^^^^^^^^^
+ | | |
+ | | help: there is an associated constant with a similar name: `Const`
+ | not a member of trait `Bar`
+
+error[E0046]: not all trait items implemented, missing: `Type`, `foo`, `bar`, `qux`
+ --> $DIR/suggest-trait-items.rs:11:1
+ |
+LL | type Type;
+ | --------- `Type` from trait
+LL |
+LL | fn foo();
+ | --------- `foo` from trait
+LL | fn bar();
+ | --------- `bar` from trait
+LL | fn qux();
+ | --------- `qux` from trait
+...
+LL | impl Foo for A {
+ | ^^^^^^^^^^^^^^ missing `Type`, `foo`, `bar`, `qux` in implementation
+
+error[E0046]: not all trait items implemented, missing: `Const`
+ --> $DIR/suggest-trait-items.rs:40:1
+ |
+LL | const Const: i32;
+ | ---------------- `Const` from trait
+...
+LL | impl Bar for B {
+ | ^^^^^^^^^^^^^^ missing `Const` in implementation
+
+error: aborting due to 7 previous errors
+
+Some errors have detailed explanations: E0046, E0407, E0437, E0438.
+For more information about an error, try `rustc --explain E0046`.