2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the trait bound `NoToSocketAddrs: ToSocketAddrs` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/issue-39029.rs:16:37
|
2020-06-20 05:30:12 -05:00
|
|
|
|
|
|
|
|
LL | let _errors = TcpListener::bind(&bad);
|
|
|
|
| ^^^^
|
|
|
|
| |
|
2020-09-02 02:40:56 -05:00
|
|
|
| the trait `ToSocketAddrs` is not implemented for `NoToSocketAddrs`
|
2020-06-20 05:30:12 -05:00
|
|
|
| help: consider adding dereference here: `&*bad`
|
|
|
|
|
|
2020-06-11 21:31:49 -05:00
|
|
|
::: $SRC_DIR/std/src/net/tcp.rs:LL:COL
|
2020-06-20 05:30:12 -05:00
|
|
|
|
|
|
|
|
LL | pub fn bind<A: ToSocketAddrs>(addr: A) -> io::Result<TcpListener> {
|
2020-09-02 02:40:56 -05:00
|
|
|
| ------------- required by this bound in `TcpListener::bind`
|
2020-06-20 05:30:12 -05:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: required because of the requirements on the impl of `ToSocketAddrs` for `&NoToSocketAddrs`
|
2020-06-20 05:30:12 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|