rust/src/test/ui/issues/issue-33575.rs
2020-01-08 08:05:31 -08:00

4 lines
167 B
Rust

fn main() {
let baz = ().foo(); //~ ERROR no method named `foo` found
<i32 as std::str::FromStr>::from_str(&baz); // No complaints about `str` being unsized
}