blob: 7f244630421ab874a7b86bd73838be665a3f26e1 [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}
David Tolnaye3198932016-10-04 00:21:34 -070028
29trait T {
30 mac!();
31 mac!{}
32 mac!();
33 mac!{}
34}
David Tolnayf94e2362016-10-04 00:29:51 -070035
36impl T::U for .. {}