rust/tests/ui/issues/issue-24682.rs
2024-05-30 22:52:33 +02:00

22 lines
450 B
Rust

trait A: Sized {
type N;
fn x() ->
Self<
N= //~ ERROR associated item constraints are not allowed here
Self::N> {
loop {}
}
fn y(&self) ->
std
<N=()> //~ ERROR associated item constraints are not allowed here
::option::Option<()>
{ None }
fn z(&self) ->
u32<N=()> //~ ERROR associated item constraints are not allowed here
{ 42 }
}
fn main() {
}