rust/tests/ui/resolve/issue-23305.rs

9 lines
155 B
Rust
Raw Normal View History

pub trait ToNbt<T> {
fn new(val: T) -> Self;
}
2019-05-28 13:46:13 -05:00
impl dyn ToNbt<Self> {}
2022-10-27 16:18:26 -05:00
//~^ ERROR `Self` is not valid in the self type of an impl block
fn main() {}