2023-10-21 01:18:41 +00:00
|
|
|
error[E0599]: no function or associated item named `new` found for struct `TcpStream` in the current scope
|
|
|
|
--> $DIR/fn-new-doesnt-exist.rs:4:28
|
|
|
|
|
|
|
|
|
LL | let stream = TcpStream::new();
|
|
|
|
| ^^^ function or associated item not found in `TcpStream`
|
|
|
|
|
|
|
|
|
note: if you're trying to build a new `TcpStream` consider using one of the following associated functions:
|
|
|
|
TcpStream::connect
|
|
|
|
TcpStream::connect_timeout
|
|
|
|
--> $SRC_DIR/std/src/net/tcp.rs:LL:COL
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-10-21 01:18:41 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|