]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/assoc-type.stderr
Auto merge of #106371 - RalfJung:no-ret-position-noalias, r=nikic
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / assoc-type.stderr
1 error[E0277]: cannot add `NonConstAdd` to `NonConstAdd` in const contexts
2   --> $DIR/assoc-type.rs:19:16
3    |
4 LL |     type Bar = NonConstAdd;
5    |                ^^^^^^^^^^^ no implementation for `NonConstAdd + NonConstAdd`
6    |
7    = help: the trait `~const Add` is not implemented for `NonConstAdd`
8 note: the trait `Add` is implemented for `NonConstAdd`, but that implementation is not `const`
9   --> $DIR/assoc-type.rs:19:16
10    |
11 LL |     type Bar = NonConstAdd;
12    |                ^^^^^^^^^^^
13 note: required by a bound in `Foo::Bar`
14   --> $DIR/assoc-type.rs:15:15
15    |
16 LL |     type Bar: ~const std::ops::Add;
17    |               ^^^^^^^^^^^^^^^^^^^^ required by this bound in `Foo::Bar`
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.