$ rustc --version
rustc 1.22.0-nightly (185cc5f26 2017-10-02)
warning: unreachable pattern
--> x.rs:6:9
|
6 | &X => println!("a"),
| ^^
|
= note: #[warn(unreachable_patterns)] on by default
error: internal compiler error: type mismatch comparing Aggregate(Repeat(Const { ty: u8, val: Integral(U8(0)) }, 1)) and Aggregate(Repeat(Const { ty: u8, val: Integral(U8(0)) }, 1))
--> x.rs:6:10
|
6 | &X => println!("a"),
| ^
error: aborting due to previous error
STR
Expected Result
code compiles and runs
Actual Result