summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/issue-23305.rs
blob: 95635e12a63b123ba53107ceb8ec99279d2532de (plain)
1
2
3
4
5
6
7
8
pub trait ToNbt<T> {
    fn new(val: T) -> Self;
}

impl dyn ToNbt<Self> {}
//~^ ERROR cycle detected

fn main() {}