rust/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-default-body-stability.stderr

30 lines
983 B
Plaintext
Raw Normal View History

2023-08-06 08:20:55 -05:00
error[E0015]: `?` cannot determine the branch of `T` in constant functions
--> $DIR/trait-default-body-stability.rs:44:9
2023-04-16 06:12:37 -05:00
|
2023-08-06 08:20:55 -05:00
LL | T?
| ^^
|
note: impl defined here, but it is not `const`
--> $DIR/trait-default-body-stability.rs:18:1
2023-04-16 06:12:37 -05:00
|
2023-08-06 08:20:55 -05:00
LL | impl const Try for T {
| ^^^^^^^^^^^^^^^^^^^^
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2023-04-16 06:12:37 -05:00
2023-08-06 08:20:55 -05:00
error[E0015]: `?` cannot convert from residual of `T` in constant functions
--> $DIR/trait-default-body-stability.rs:44:9
2023-04-16 06:12:37 -05:00
|
2023-08-06 08:20:55 -05:00
LL | T?
| ^^
|
note: impl defined here, but it is not `const`
--> $DIR/trait-default-body-stability.rs:33:1
2023-04-16 06:12:37 -05:00
|
2023-08-06 08:20:55 -05:00
LL | impl const FromResidual for T {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2023-04-16 06:12:37 -05:00
error: aborting due to 2 previous errors
2023-08-06 08:20:55 -05:00
For more information about this error, try `rustc --explain E0015`.