1 error[E0277]: the trait bound `NoToSocketAddrs: ToSocketAddrs` is not satisfied
2 --> $DIR/issue-39029.rs:16:37
4 LL | let _errors = TcpListener::bind(&bad);
5 | ----------------- ^^^^
7 | | the trait `ToSocketAddrs` is not implemented for `NoToSocketAddrs`
8 | | help: consider dereferencing here: `&*bad`
9 | required by a bound introduced by this call
11 = note: required because of the requirements on the impl of `ToSocketAddrs` for `&NoToSocketAddrs`
12 note: required by a bound in `TcpListener::bind`
13 --> $SRC_DIR/std/src/net/tcp.rs:LL:COL
15 LL | pub fn bind<A: ToSocketAddrs>(addr: A) -> io::Result<TcpListener> {
16 | ^^^^^^^^^^^^^ required by this bound in `TcpListener::bind`
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0277`.