mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-29 21:27:18 +00:00
21 lines
413 B
Rust
21 lines
413 B
Rust
enum Enum { Variant }
|
|
|
|
impl Enum {
|
|
const MISSPELLABLE: i32 = 0;
|
|
fn misspellable() {}
|
|
}
|
|
|
|
trait Trait {
|
|
fn misspellable_trait() {}
|
|
}
|
|
|
|
impl Trait for Enum {
|
|
fn misspellable_trait() {}
|
|
}
|
|
|
|
fn main() {
|
|
Enum::mispellable(); //~ ERROR no variant or associated item
|
|
Enum::mispellable_trait(); //~ ERROR no variant or associated item
|
|
Enum::MISPELLABLE; //~ ERROR no variant or associated item
|
|
}
|