rust/tests/ui/resolve/fn-new-doesnt-exist.rs

6 lines
133 B
Rust

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