rust/tests/ui/traits/const-traits/tilde-const-in-struct-args.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
297 B
Rust
Raw Normal View History

2024-10-21 15:16:33 -05:00
//@ compile-flags: -Znext-solver
//@ known-bug: #132067
//@ check-pass
2024-10-30 13:03:44 -05:00
#![feature(const_trait_impl)]
2024-10-21 15:16:33 -05:00
struct S;
#[const_trait]
trait Trait<const N: u32> {}
const fn f<
T: Trait<
{
struct I<U: ~const Trait<0>>(U);
0
},
>,
>() {
}
pub fn main() {}