mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 03:54:40 +00:00
17 lines
397 B
Rust
17 lines
397 B
Rust
// run-rustfix
|
|
|
|
#![allow(unused)]
|
|
|
|
fn light_flows_our_war_of_mocking_words(and_yet: &usize) -> usize {
|
|
and_yet + 1
|
|
}
|
|
|
|
fn main() {
|
|
let behold: isize = 2;
|
|
let with_tears: usize = 3;
|
|
light_flows_our_war_of_mocking_words(&(behold as usize));
|
|
//~^ ERROR mismatched types [E0308]
|
|
light_flows_our_war_of_mocking_words(&(with_tears + 4));
|
|
//~^ ERROR mismatched types [E0308]
|
|
}
|