mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
12 lines
169 B
Rust
12 lines
169 B
Rust
struct Foo;
|
|
|
|
impl Foo {
|
|
const A_CONST: usize = 1;
|
|
|
|
fn foo() -> usize {
|
|
A_CONST //~ ERROR cannot find value `A_CONST` in this scope
|
|
}
|
|
}
|
|
|
|
fn main() {}
|