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