mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 23:19:16 +00:00
When printing impl headers in a diagnostic, the compiler has to account for `?Sized` implying `MetaSized` and new `MetaSized` and `PointeeSized` bounds.
8 lines
116 B
Rust
8 lines
116 B
Rust
pub trait SizedTr {}
|
|
|
|
impl<T: Sized> SizedTr for T {}
|
|
|
|
pub trait NegSizedTr {}
|
|
|
|
impl<T: ?Sized> NegSizedTr for T {}
|