fork/rust

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

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

master
947 B29 linesraw
1error[E0015]: `?` cannot determine the branch of `TryMe` in constant functions
2  --> $DIR/const-try.rs:33:5
3   |
4LL |     TryMe?;
5   |     ^^^^^^
6   |
7note: impl defined here, but it is not `const`
8  --> $DIR/const-try.rs:21:1
9   |
10LL | impl const Try for TryMe {
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 `TryMe` in constant functions
15  --> $DIR/const-try.rs:33:5
16   |
17LL |     TryMe?;
18   |     ^^^^^^
19   |
20note: impl defined here, but it is not `const`
21  --> $DIR/const-try.rs:15:1
22   |
23LL | impl const FromResidual<Error> for TryMe {
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`.