]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/suggest-deferences/issue-39029.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / traits / suggest-deferences / issue-39029.stderr
1 error[E0277]: the trait bound `NoToSocketAddrs: ToSocketAddrs` is not satisfied
2 --> $DIR/issue-39029.rs:16:37
3 |
4 LL | let _errors = TcpListener::bind(&bad);
5 | ----------------- ^^^^
6 | | |
7 | | the trait `ToSocketAddrs` is not implemented for `NoToSocketAddrs`
8 | | help: consider dereferencing here: `&*bad`
9 | required by a bound introduced by this call
10 |
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
14 |
15 LL | pub fn bind<A: ToSocketAddrs>(addr: A) -> io::Result<TcpListener> {
16 | ^^^^^^^^^^^^^ required by this bound in `TcpListener::bind`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.