mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-19 11:07:32 +00:00
19 lines
275 B
Rust
19 lines
275 B
Rust
![]() |
// Regression test for <https://github.com/rust-lang/rust/issues/137288>.
|
||
|
|
||
|
trait B {
|
||
|
type C;
|
||
|
}
|
||
|
|
||
|
impl<U> B for &Missing {
|
||
|
//~^ ERROR cannot find type `Missing` in this scope
|
||
|
type C = ();
|
||
|
}
|
||
|
|
||
|
struct E<T: B> {
|
||
|
g: <T as B>::C,
|
||
|
}
|
||
|
|
||
|
fn h(i: Box<E<&()>>) {}
|
||
|
|
||
|
fn main() {}
|