]>
Commit | Line | Data |
---|---|---|
e9174d1e SL |
1 | trait A: Sized { |
2 | type N; | |
3 | fn x() -> | |
4 | Self< | |
5 | N= //~ ERROR associated type bindings are not allowed here | |
6 | Self::N> { | |
7 | loop {} | |
8 | } | |
9 | fn y(&self) -> | |
10 | std | |
11 | <N=()> //~ ERROR associated type bindings are not allowed here | |
12 | ::option::Option<()> | |
13 | { None } | |
14 | fn z(&self) -> | |
15 | u32<N=()> //~ ERROR associated type bindings are not allowed here | |
16 | { 42 } | |
85aaf69f | 17 | |
62682a34 SL |
18 | } |
19 | ||
20 | fn main() { | |
62682a34 | 21 | } |