mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
15 lines
406 B
Plaintext
15 lines
406 B
Plaintext
error[E0574]: expected struct, variant or union type, found trait `Trait`
|
|
--> $DIR/issue-18986.rs:8:9
|
|
|
|
|
LL | Trait { x: 42 } => ()
|
|
| ^^^^^ not a struct, variant or union type
|
|
|
|
|
help: consider importing this struct instead
|
|
|
|
|
LL + use std::mem::type_info::Trait;
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0574`.
|