about summary refs log tree commit diff
path: root/tests/ui/function-pointer/signature-mismatch.rs
blob: f269e9bf84b318c087cb2a2050f1a9655a0b2ca6 (plain)
1
2
3
4
5
6
//! This test used to hit an assertion instead of erroring and bailing out.

fn main() {
    let _ = [std::ops::Add::add, std::ops::Mul::mul, std::ops::Mul::mul as fn(_, &_)];
    //~^ ERROR: mismatched types
}