]> git.proxmox.com Git - rustc.git/blame - tests/ui/const-generics/issues/issue-86530.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / const-generics / issues / issue-86530.stderr
CommitLineData
c295e0f8
XL
1error[E0277]: the trait bound `&str: X` is not satisfied
2 --> $DIR/issue-86530.rs:16:7
3 |
4LL | z(" ");
5 | - ^^^ the trait `X` is not implemented for `&str`
6 | |
7 | required by a bound introduced by this call
8 |
781aab86
FG
9help: this trait has no implementations, consider adding one
10 --> $DIR/issue-86530.rs:4:1
11 |
12LL | pub trait X {
13 | ^^^^^^^^^^^
c295e0f8
XL
14note: required by a bound in `z`
15 --> $DIR/issue-86530.rs:10:8
16 |
17LL | fn z<T>(t: T)
9ffffee4 18 | - required by a bound in this function
c295e0f8
XL
19LL | where
20LL | T: X,
21 | ^ required by this bound in `z`
22
064997fb 23error: aborting due to previous error
c295e0f8
XL
24
25For more information about this error, try `rustc --explain E0277`.