]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/constrain-suggest-ice.rs
Merge 'rust-clippy/master' into clippyup
[rust.git] / src / test / ui / suggestions / constrain-suggest-ice.rs
1 struct Bug<S>{ //~ ERROR parameter `S` is never used [E0392]
2     A: [(); {
3         let x: [u8; Self::W] = [0; Self::W]; //~ ERROR generic `Self` types are currently not permitted in anonymous constants
4         //~^ ERROR generic `Self` types are currently not permitted in anonymous constants
5         //~^^ ERROR the size for values of type `S` cannot be known at compilation time [E0277]
6         F //~ ERROR cannot find value `F` in this scope [E0425]
7     }
8 } //~ ERROR mismatched closing delimiter: `}`
9 //~^ ERROR mismatched closing delimiter: `}`
10
11 fn main() {}