diff options
Diffstat (limited to 'src/test/ui/const-generics/early/const-param-hygiene.rs')
-rw-r--r-- | src/test/ui/const-generics/early/const-param-hygiene.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/const-generics/early/const-param-hygiene.rs b/src/test/ui/const-generics/early/const-param-hygiene.rs deleted file mode 100644 index fd4e5b409..000000000 --- a/src/test/ui/const-generics/early/const-param-hygiene.rs +++ /dev/null @@ -1,17 +0,0 @@ -// run-pass - -macro_rules! bar { - ($($t:tt)*) => { impl<const N: usize> $($t)* }; -} - -macro_rules! baz { - ($t:tt) => { fn test<const M: usize>(&self) -> usize { $t } }; -} - -struct Foo<const N: usize>; - -bar!(Foo<N> { baz!{ M } }); - -fn main() { - assert_eq!(Foo::<7>.test::<3>(), 3); -} |