diff options
Diffstat (limited to 'tests/ui/async-await/bound-normalization.rs')
| -rw-r--r-- | tests/ui/async-await/bound-normalization.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/async-await/bound-normalization.rs b/tests/ui/async-await/bound-normalization.rs new file mode 100644 index 00000000000..5d260682f1d --- /dev/null +++ b/tests/ui/async-await/bound-normalization.rs @@ -0,0 +1,14 @@ +// check-pass +// edition:2018 + +// See issue 60414 + +trait Trait { + type Assoc; +} + +async fn foo<T: Trait<Assoc=()>>() -> T::Assoc { + () +} + +fn main() {} |
