2022-08-28 06:27:31 +00:00
|
|
|
error[E0277]: the trait bound `A: Deref` is not satisfied
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-25901.rs:4:24
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | static S: &'static B = &A;
|
2022-08-28 06:27:31 +00:00
|
|
|
| ^^ the trait `~const Deref` is not implemented for `A`
|
2021-12-09 17:10:05 +00:00
|
|
|
|
|
2022-08-28 06:27:31 +00:00
|
|
|
note: the trait `Deref` is implemented for `A`, but that implementation is not `const`
|
|
|
|
--> $DIR/issue-25901.rs:4:24
|
2021-12-09 17:10:05 +00:00
|
|
|
|
|
2022-08-28 06:27:31 +00:00
|
|
|
LL | static S: &'static B = &A;
|
|
|
|
| ^^
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2022-08-28 06:27:31 +00:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|