]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / rfc-2632-const-trait-impl / trait-where-clause.stderr
CommitLineData
94222f64 1error[E0277]: the trait bound `T: Bar` is not satisfied
2b03887a 2 --> $DIR/trait-where-clause.rs:14:5
94222f64
XL
3 |
4LL | T::b();
5 | ^^^^ the trait `Bar` is not implemented for `T`
6 |
3c0e092e 7note: required by a bound in `Foo::b`
2b03887a 8 --> $DIR/trait-where-clause.rs:8:24
94222f64
XL
9 |
10LL | fn b() where Self: ~const Bar;
3c0e092e 11 | ^^^^^^^^^^ required by this bound in `Foo::b`
94222f64
XL
12help: consider further restricting this bound
13 |
2b03887a 14LL | fn test1<T: Foo + Bar>() {
94222f64
XL
15 | +++++
16
17error[E0277]: the trait bound `T: Bar` is not satisfied
2b03887a 18 --> $DIR/trait-where-clause.rs:16:12
94222f64
XL
19 |
20LL | T::c::<T>();
f2b60f7d 21 | ^ the trait `Bar` is not implemented for `T`
94222f64 22 |
3c0e092e 23note: required by a bound in `Foo::c`
2b03887a 24 --> $DIR/trait-where-clause.rs:9:13
94222f64
XL
25 |
26LL | fn c<T: ~const Bar>();
3c0e092e 27 | ^^^^^^^^^^ required by this bound in `Foo::c`
94222f64
XL
28help: consider further restricting this bound
29 |
2b03887a 30LL | fn test1<T: Foo + Bar>() {
94222f64
XL
31 | +++++
32
2b03887a 33error: aborting due to 2 previous errors
94222f64
XL
34
35For more information about this error, try `rustc --explain E0277`.