mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
7449478c2f
Fix #89868.
8 lines
313 B
Rust
8 lines
313 B
Rust
struct A<B>(B);
|
|
impl<B>A<B>{fn d(){fn d(){Self(1)}}}
|
|
//~^ ERROR the size for values of type `B` cannot be known at compilation time
|
|
//~| ERROR the size for values of type `B` cannot be known at compilation time
|
|
//~| ERROR mismatched types
|
|
//~| ERROR mismatched types
|
|
//~| ERROR `main` function not found in crate
|