rust/tests/ui/issues/issue-25901.stderr

16 lines
508 B
Plaintext
Raw Normal View History

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