summary refs log tree commit diff
path: root/src/test/ui/issues/issue-33575.rs
blob: 09c499452adb687b737843c63ed5c2d4bc8c33e8 (plain)
1
2
3
4
fn main() {
    let baz = ().foo(); //~ ERROR no method named `foo` found for type `()` in the current scope
    <i32 as std::str::FromStr>::from_str(&baz); // No complaints about `str` being unsized
}