]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/specializing-constness-2.stderr
Rollup merge of #106322 - compiler-errors:CollectAllMismatches-infer-vars, r=oli-obk
[rust.git] / tests / ui / rfc-2632-const-trait-impl / specializing-constness-2.stderr
1 error[E0277]: the trait bound `T: ~const Sup` is not satisfied
2   --> $DIR/specializing-constness-2.rs:27:5
3    |
4 LL |     <T as A>::a();
5    |     ^^^^^^^^^^^^^ the trait `~const Sup` is not implemented for `T`
6    |
7 note: required for `T` to implement `~const A`
8   --> $DIR/specializing-constness-2.rs:20:37
9    |
10 LL | impl<T: Default + ~const Sup> const A for T {
11    |                   ----------        ^     ^
12    |                   |
13    |                   unsatisfied trait bound introduced here
14 help: consider further restricting this bound
15    |
16 LL | const fn generic<T: Default + ~const Sup>() {
17    |                             ++++++++++++
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.