]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/const-default-method-bodies.stderr
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / rfc-2632-const-trait-impl / const-default-method-bodies.stderr
1 error[E0277]: the trait bound `NonConstImpl: ~const ConstDefaultFn` is not satisfied
2   --> $DIR/const-default-method-bodies.rs:24:18
3    |
4 LL |     NonConstImpl.a();
5    |                  ^ the trait `~const ConstDefaultFn` is not implemented for `NonConstImpl`
6    |
7 note: the trait `ConstDefaultFn` is implemented for `NonConstImpl`, but that implementation is not `const`
8   --> $DIR/const-default-method-bodies.rs:24:5
9    |
10 LL |     NonConstImpl.a();
11    |     ^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.