]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-25901.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-25901.stderr
1 error[E0277]: the trait bound `A: Deref` is not satisfied
2   --> $DIR/issue-25901.rs:4:24
3    |
4 LL | static S: &'static B = &A;
5    |                        ^^ the trait `~const Deref` is not implemented for `A`
6    |
7 note: the trait `Deref` is implemented for `A`, but that implementation is not `const`
8   --> $DIR/issue-25901.rs:4:24
9    |
10 LL | static S: &'static B = &A;
11    |                        ^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.