mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +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]
|
|
}
|