diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-24682.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-24682.rs b/src/test/ui/issues/issue-24682.rs new file mode 100644 index 000000000..0d1ab7341 --- /dev/null +++ b/src/test/ui/issues/issue-24682.rs @@ -0,0 +1,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() { +} |