rust/tests/ui/typeck/issue-96738.rs

5 lines
167 B
Rust

fn main() {
Some.nonexistent_method(); //~ ERROR: no method named `nonexistent_method` found
Some.nonexistent_field; //~ ERROR: no field `nonexistent_field`
}