fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
983 B29 linesraw
1error[E0015]: `?` cannot determine the branch of `T` in constant functions
2  --> $DIR/trait-default-body-stability.rs:44:9
3   |
4LL |         T?
5   |         ^^
6   |
7note: impl defined here, but it is not `const`
8  --> $DIR/trait-default-body-stability.rs:18:1
9   |
10LL | impl const Try for T {
11   | ^^^^^^^^^^^^^^^^^^^^
12   = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
13
14error[E0015]: `?` cannot convert from residual of `T` in constant functions
15  --> $DIR/trait-default-body-stability.rs:44:9
16   |
17LL |         T?
18   |         ^^
19   |
20note: impl defined here, but it is not `const`
21  --> $DIR/trait-default-body-stability.rs:33:1
22   |
23LL | impl const FromResidual for T {
24   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25   = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
26
27error: aborting due to 2 previous errors
28
29For more information about this error, try `rustc --explain E0015`.