about summary refs log tree commit diff
path: root/tests/ui/method-output-diff-issue-127263.rs
blob: 85a903e245360e1ce11ee03e832255f0a7ddd707 (plain)
1
2
3
4
5
6
7
8
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]
}