summary refs log tree commit diff
path: root/src/test/ui/wf/wf-object-safe.rs
blob: 08f68f6c004fae40fbcee9c787306289042e9217 (plain)
1
2
3
4
5
6
7
8
9
10
// Check that object-safe traits are not WF when used as object types.
// Issue #21953.

trait A {
    fn foo(&self, _x: &Self);
}

fn main() {
    let _x: &A; //~ ERROR E0038
}