]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/specializing-constness-2.stderr
Auto merge of #105651 - tgross35:once-cell-inline, r=m-ou-se
[rust.git] / src / test / 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 help: consider further restricting this bound
13    |
14 LL | const fn generic<T: Default + ~const Sup>() {
15    |                             ++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.