]> git.lizzy.rs Git - rust.git/blob - src/test/ui/prim-with-args.rs
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / prim-with-args.rs
1 // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 fn main() {
12
13 let x: isize<isize>; //~ ERROR type parameters are not allowed on this type
14 let x: i8<isize>; //~ ERROR type parameters are not allowed on this type
15 let x: i16<isize>; //~ ERROR type parameters are not allowed on this type
16 let x: i32<isize>; //~ ERROR type parameters are not allowed on this type
17 let x: i64<isize>; //~ ERROR type parameters are not allowed on this type
18 let x: usize<isize>; //~ ERROR type parameters are not allowed on this type
19 let x: u8<isize>; //~ ERROR type parameters are not allowed on this type
20 let x: u16<isize>; //~ ERROR type parameters are not allowed on this type
21 let x: u32<isize>; //~ ERROR type parameters are not allowed on this type
22 let x: u64<isize>; //~ ERROR type parameters are not allowed on this type
23 let x: char<isize>; //~ ERROR type parameters are not allowed on this type
24
25 let x: isize<'static>; //~ ERROR lifetime parameters are not allowed on this type
26 let x: i8<'static>; //~ ERROR lifetime parameters are not allowed on this type
27 let x: i16<'static>; //~ ERROR lifetime parameters are not allowed on this type
28 let x: i32<'static>; //~ ERROR lifetime parameters are not allowed on this type
29 let x: i64<'static>; //~ ERROR lifetime parameters are not allowed on this type
30 let x: usize<'static>; //~ ERROR lifetime parameters are not allowed on this type
31 let x: u8<'static>; //~ ERROR lifetime parameters are not allowed on this type
32 let x: u16<'static>; //~ ERROR lifetime parameters are not allowed on this type
33 let x: u32<'static>; //~ ERROR lifetime parameters are not allowed on this type
34 let x: u64<'static>; //~ ERROR lifetime parameters are not allowed on this type
35 let x: char<'static>; //~ ERROR lifetime parameters are not allowed on this type
36
37 }