mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:36:05 +01:00
16 lines
188 B
Rust
16 lines
188 B
Rust
#[derive(Default)]
|
|
enum E {
|
|
A {},
|
|
B {},
|
|
#[default]
|
|
C,
|
|
}
|
|
|
|
impl E {
|
|
fn f() {}
|
|
}
|
|
|
|
fn main() {
|
|
E::A::f(); //~ ERROR failed to resolve: `A` is a variant, not a module
|
|
}
|