]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-24682.rs
Auto merge of #79113 - andjo403:raw_vec_ptr, r=m-ou-se
[rust.git] / src / test / ui / issues / issue-24682.rs
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 }
17
18 }
19
20 fn main() {
21 }