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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
155 B
Rust
Raw Normal View History

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