Skip to content

Commit d187e81

Browse files
committed
add regression test for #73730
1 parent e230950 commit d187e81

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// check-pass
2+
#![feature(const_generics)]
3+
#![allow(incomplete_features)]
4+
5+
trait Foo<'a, A>: Iterator<Item=A> {
6+
fn bar<const N: usize>(&mut self) -> *const [A; N];
7+
}
8+
9+
impl<'a, A, I: ?Sized> Foo<'a, A> for I where I: Iterator<Item=A> {
10+
fn bar<const N: usize>(&mut self) -> *const [A; N] {
11+
std::ptr::null()
12+
}
13+
}
14+
15+
fn main() {
16+
(0_u8 .. 10).bar::<10_usize>();
17+
}

0 commit comments

Comments
 (0)