summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-104287.rs
blob: b7601a548b9981cf5540f43b7866e3f6c9084722 (plain)
1
2
3
4
5
6
7
8
9
// The purpose of this test is not to validate the output of the compiler.
// Instead, it ensures the suggestion is generated without performing an arithmetic overflow.

fn main() {
    let x = not_found; //~ ERROR cannot find value `not_found` in this scope
    simd_gt::<()>(x);
    //~^ ERROR this associated function takes 0 generic arguments but 1 generic argument was supplied
    //~| ERROR cannot find function `simd_gt` in this scope
}