rust/tests/ui/suggestions/assoc-const-without-self.rs
2023-01-25 08:58:27 -05:00

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() {}