diff options
Diffstat (limited to 'tests/ui/traits/const-traits/conditionally-const-trait-bound-syntax.rs')
| -rw-r--r-- | tests/ui/traits/const-traits/conditionally-const-trait-bound-syntax.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/traits/const-traits/conditionally-const-trait-bound-syntax.rs b/tests/ui/traits/const-traits/conditionally-const-trait-bound-syntax.rs new file mode 100644 index 00000000000..89950c65ef6 --- /dev/null +++ b/tests/ui/traits/const-traits/conditionally-const-trait-bound-syntax.rs @@ -0,0 +1,9 @@ +//@ compile-flags: -Z parse-crate-root-only +//@ check-pass + +#![feature(const_trait_impl)] + +struct S< + T: for<'a> [const] Tr<'a> + 'static + [const] std::ops::Add, + T: for<'a: 'b> [const] m::Trait<'a>, +>; |
