2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: the trait bound `NoToSocketAddrs: ToSocketAddrs` is not satisfied
|
2023-02-19 21:27:04 -08:00
|
|
|
--> $DIR/issue-39029.rs:16:38
|
2020-06-20 18:30:12 +08:00
|
|
|
|
|
|
|
|
LL | let _errors = TcpListener::bind(&bad);
|
2023-02-19 21:27:04 -08:00
|
|
|
| ----------------- ^^^ the trait `ToSocketAddrs` is not implemented for `NoToSocketAddrs`
|
2022-08-20 15:54:39 +09:00
|
|
|
| |
|
2021-09-07 11:30:53 +00:00
|
|
|
| required by a bound introduced by this call
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2022-08-15 21:31:37 +01:00
|
|
|
= note: required for `&NoToSocketAddrs` to implement `ToSocketAddrs`
|
2021-07-31 09:26:55 -07:00
|
|
|
note: required by a bound in `TcpListener::bind`
|
|
|
|
--> $SRC_DIR/std/src/net/tcp.rs:LL:COL
|
2022-08-20 15:54:39 +09:00
|
|
|
help: consider dereferencing here
|
|
|
|
|
|
|
|
|
LL | let _errors = TcpListener::bind(&*bad);
|
|
|
|
| +
|
2020-06-20 18:30:12 +08:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|