]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/cross-crate.stocknc.stderr
Rollup merge of #106754 - compiler-errors:ty-infer-method-is-confusing, r=lcnr
[rust.git] / tests / ui / rfc-2632-const-trait-impl / cross-crate.stocknc.stderr
1 error[E0277]: the trait bound `cross_crate::NonConst: cross_crate::MyTrait` is not satisfied
2   --> $DIR/cross-crate.rs:17:14
3    |
4 LL |     NonConst.func();
5    |              ^^^^ the trait `~const cross_crate::MyTrait` is not implemented for `cross_crate::NonConst`
6    |
7 note: the trait `cross_crate::MyTrait` is implemented for `cross_crate::NonConst`, but that implementation is not `const`
8   --> $DIR/cross-crate.rs:17:5
9    |
10 LL |     NonConst.func();
11    |     ^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.