mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 01:55:03 +00:00
f926031ea5
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
|
|
}
|