mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
12 lines
229 B
Rust
12 lines
229 B
Rust
const X: u8 = 1;
|
|
static Y: u8 = 1;
|
|
fn foo() {}
|
|
|
|
impl X {}
|
|
//~^ ERROR expected type, found constant `X`
|
|
impl Y {}
|
|
//~^ ERROR expected type, found static `Y`
|
|
impl foo {}
|
|
//~^ ERROR expected type, found function `foo`
|
|
|
|
fn main() {}
|