rust/tests/ui/keyword/keyword-self-as-identifier.rs

4 lines
114 B
Rust

fn main() {
let Self = 22; //~ ERROR cannot find unit struct, unit variant or constant `Self` in this scope
}