rust/tests/ui/resolve/missing-associated-items.stderr
reddevilmidzy 4578082361 Cleaned up some tests
add comment to closure-move-use-after-move-diagnostic.rs

add comment to missing-operator-after-float.rs

add comment to closure-array-break-length.rs

add comment to box-lifetime-argument-not-allowed.rs

add comment to const-return-outside-fn.rs

add comment to drop-conflicting-impls.rs

add comment to unbalanced-doublequote-2.rs

add comment to borrow-immutable-deref-box.rs

add comment to for-in-const-eval.rs

add comment to borrowck-annotated-static-lifetime.rs

cleaned up cast-rfc0401.rs

add comment to nll-anon-to-static.rs

add comment to cast-to-dyn-any.rs

add comment to missing-associated-items.rs

add comment to enum-discriminant-missing-variant.rs
2025-12-23 21:13:24 +09:00

39 lines
1.5 KiB
Text

error[E0599]: no variant or associated item named `Homura` found for enum `Token` in the current scope
--> $DIR/missing-associated-items.rs:17:23
|
LL | enum Token {
| ---------- variant or associated item `Homura` not found for this enum
...
LL | use_token(&Token::Homura);
| ^^^^^^ variant or associated item not found in `Token`
error[E0599]: no function or associated item named `method` found for struct `Struct` in the current scope
--> $DIR/missing-associated-items.rs:18:13
|
LL | struct Struct {
| ------------- function or associated item `method` not found for this struct
...
LL | Struct::method();
| ^^^^^^ function or associated item not found in `Struct`
error[E0599]: no function or associated item named `method` found for struct `Struct` in the current scope
--> $DIR/missing-associated-items.rs:19:13
|
LL | struct Struct {
| ------------- function or associated item `method` not found for this struct
...
LL | Struct::method;
| ^^^^^^ function or associated item not found in `Struct`
error[E0599]: no associated item named `Assoc` found for struct `Struct` in the current scope
--> $DIR/missing-associated-items.rs:20:13
|
LL | struct Struct {
| ------------- associated item `Assoc` not found for this struct
...
LL | Struct::Assoc;
| ^^^^^ associated item not found in `Struct`
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0599`.