blob: 18d34f9e081969d45a1c810b64ce2a38838296b5 [file] [log] [blame]
David Tolnayca085422016-10-04 00:12:38 -07001trait T {}
2
3trait T: 'static + A + B<C> {}
4
5pub unsafe trait T {}
6
7trait T {
8 const a: u8;
9 const b: u8 = 0;
10}
11
12trait T {
13 fn f<X>() -> Result<T>;
14 fn f<X>(self);
15 fn f<X>(mut self);
16 fn f<X>(&self, &u8);
17 fn f<X>(&mut self) {}
18 fn f<X>(&'a self, &u8);
19 fn f<X>(&'a mut self) {}
20}
21
22trait T {
23 type X;
24 type X: 'a + B;
25 type X = ();
26 type X: 'a + B = ();
27}