]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-104287.rs
Rollup merge of #105230 - cjgillot:issue-104312, r=petrochenkov
[rust.git] / src / test / ui / suggestions / issue-104287.rs
1 // The purpose of this test is not to validate the output of the compiler.
2 // Instead, it ensures the suggestion is generated without performing an arithmetic overflow.
3
4 fn main() {
5     let x = not_found; //~ ERROR cannot find value `not_found` in this scope
6     simd_gt::<()>(x);
7     //~^ ERROR this associated function takes 0 generic arguments but 1 generic argument was supplied
8     //~| ERROR cannot find function `simd_gt` in this scope
9 }