fork/rust

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

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

master
549 B18 linesraw
1error[E0308]: mismatched types
2  --> $DIR/const.rs:14:9
3   |
4LL | const FOO: Foo = Foo{bar: 5};
5   | -------------- constant defined here
6...
7LL |     match &f {
8   |           -- this expression has type `&Foo`
9LL |         FOO => {},
10   |         ^^^
11   |         |
12   |         expected `&Foo`, found `Foo`
13   |         `FOO` is interpreted as a constant, not a new binding
14   |         help: introduce a new binding instead: `other_foo`
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0308`.