mirror of
https://git.proxmox.com/git/rustc
synced 2025-07-04 09:13:49 +00:00
8 lines
220 B
Rust
8 lines
220 B
Rust
fn main() {
|
|
struct X;
|
|
//~^ HELP consider annotating `X` with `#[derive(PartialEq)]`
|
|
let xs = [X, X, X];
|
|
let eq = xs == [X, X, X];
|
|
//~^ ERROR binary operation `==` cannot be applied to type `[X; 3]`
|
|
}
|