mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
22 lines
441 B
Rust
22 lines
441 B
Rust
|
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() {
|
||
|
}
|