mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
33 lines
448 B
Rust
33 lines
448 B
Rust
fn foo() {
|
|
let a = 0;
|
|
let b = 4;
|
|
if a =< b { //~ERROR
|
|
println!("yay!");
|
|
}
|
|
}
|
|
|
|
fn bar() {
|
|
let a = 0;
|
|
let b = 4;
|
|
if a = <b { //~ERROR
|
|
println!("yay!");
|
|
}
|
|
}
|
|
|
|
fn baz() {
|
|
let a = 0;
|
|
let b = 4;
|
|
if a = < b { //~ERROR
|
|
println!("yay!");
|
|
}
|
|
}
|
|
|
|
fn qux() {
|
|
let a = 0;
|
|
let b = 4;
|
|
if a =< i32>::abs(-4) { //~ERROR: mismatched types
|
|
println!("yay!");
|
|
}
|
|
}
|
|
|
|
fn main() {}
|