diff options
Diffstat (limited to 'src/test/ui/const-generics/issues/issue-70125-2.rs')
-rw-r--r-- | src/test/ui/const-generics/issues/issue-70125-2.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/issues/issue-70125-2.rs b/src/test/ui/const-generics/issues/issue-70125-2.rs new file mode 100644 index 000000000..cfd5e784e --- /dev/null +++ b/src/test/ui/const-generics/issues/issue-70125-2.rs @@ -0,0 +1,12 @@ +// run-pass +fn main() { + <()>::foo(); +} + +trait Foo<const X: usize> { + fn foo() -> usize { + X + } +} + +impl Foo<3> for () {} |