Skip to content

Commit f653db9

Browse files
committed
Add test for issue-48010
1 parent 6323180 commit f653db9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// check-pass
2+
3+
#![crate_type = "lib"]
4+
5+
pub struct Foo;
6+
7+
pub struct Path<T: Bar> {
8+
_inner: T::Slice,
9+
}
10+
11+
pub trait Bar: Sized {
12+
type Slice: ?Sized;
13+
14+
fn open(_: &Path<Self>);
15+
}
16+
17+
impl Bar for Foo {
18+
type Slice = [u8];
19+
20+
fn open(_: &Path<Self>) {
21+
unimplemented!()
22+
}
23+
}

0 commit comments

Comments
 (0)