fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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`.