]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-24682.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-24682.rs
CommitLineData
e9174d1e
SL
1trait 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
20fn main() {
62682a34 21}