]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2632-const-trait-impl/issue-88155.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / rfc-2632-const-trait-impl / issue-88155.stderr
CommitLineData
5099ac24 1error[E0277]: the trait bound `T: ~const A` is not satisfied
ee023bcb 2 --> $DIR/issue-88155.rs:8:5
5099ac24
FG
3 |
4LL | T::assoc()
5 | ^^^^^^^^^^ the trait `~const A` is not implemented for `T`
6 |
7note: the trait `A` is implemented for `T`, but that implementation is not `const`
ee023bcb 8 --> $DIR/issue-88155.rs:8:5
5099ac24
FG
9 |
10LL | T::assoc()
11 | ^^^^^^^^^^
12
13error[E0015]: cannot call non-const fn `<T as A>::assoc` in constant functions
ee023bcb 14 --> $DIR/issue-88155.rs:8:5
94222f64
XL
15 |
16LL | T::assoc()
17 | ^^^^^^^^^^
5099ac24
FG
18 |
19 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
94222f64 20
5099ac24 21error: aborting due to 2 previous errors
94222f64 22
5099ac24
FG
23Some errors have detailed explanations: E0015, E0277.
24For more information about an error, try `rustc --explain E0015`.