blob: bc5066b69d92a4ba54a7d1d8653ffd7db40917f5 [file] [edit]
fn missing_value() {
path;
//~^ ERROR cannot find value `path` in this scope [E0423]
}
fn missing_function() {
path();
//~^ ERROR cannot find function `path` in this scope [E0423]
}
fn suggested_value() {
let pathh = ();
path;
//~^ ERROR cannot find value `path` in this scope [E0423]
let _ = pathh;
}
struct Wat {
path: (),
}
impl Wat {
fn new() -> Wat {
Wat { path }
//~^ ERROR cannot find value `path` in this scope [E0423]
}
}
fn main() {}