mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00

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.
6 lines
133 B
Rust
6 lines
133 B
Rust
use std::net::TcpStream;
|
|
|
|
fn main() {
|
|
let stream = TcpStream::new(); //~ ERROR no function or associated item named `new` found
|
|
}
|