rust/tests/ui/resolve/fn-new-doesnt-exist.rs
Esteban Küber f926031ea5 When not finding assoc fn on type, look for builder fn
When we have a resolution error when looking at a fully qualified path
on a type, look for all associated functions on inherent impls that
return `Self` and mention them to the user.

Fix #69512.
2023-11-07 00:54:10 +00:00

6 lines
133 B
Rust

use std::net::TcpStream;
fn main() {
let stream = TcpStream::new(); //~ ERROR no function or associated item named `new` found
}