mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
9 lines
184 B
Rust
9 lines
184 B
Rust
fn bar() {}
|
|
fn foo(x: i32) -> u32 {
|
|
0
|
|
}
|
|
fn main() {
|
|
let b: fn() -> u32 = bar; //~ ERROR mismatched types [E0308]
|
|
let f: fn(i32) = foo; //~ ERROR mismatched types [E0308]
|
|
}
|