summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-24682.rs
blob: 0d1ab73417c02b4fb62ac497e336d5d6a92a4ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
trait A: Sized {
    type N;
    fn x() ->
        Self<
          N= //~ ERROR associated type bindings are not allowed here
          Self::N> {
        loop {}
    }
    fn y(&self) ->
        std
           <N=()> //~ ERROR associated type bindings are not allowed here
           ::option::Option<()>
    { None }
    fn z(&self) ->
        u32<N=()> //~ ERROR associated type bindings are not allowed here
    { 42 }

}

fn main() {
}