diff options
Diffstat (limited to 'src/test/ui/const-generics/issues/issue-70125-1.rs')
-rw-r--r-- | src/test/ui/const-generics/issues/issue-70125-1.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/const-generics/issues/issue-70125-1.rs b/src/test/ui/const-generics/issues/issue-70125-1.rs deleted file mode 100644 index 0027cd46a..000000000 --- a/src/test/ui/const-generics/issues/issue-70125-1.rs +++ /dev/null @@ -1,17 +0,0 @@ -// run-pass - -const L: usize = 4; - -pub trait Print<const N: usize> { - fn print(&self) -> usize { - N - } -} - -pub struct Printer; -impl Print<L> for Printer {} - -fn main() { - let p = Printer; - assert_eq!(p.print(), 4); -} |