1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
prelude!(); use ErrorKind::*; #[test] fn deny_self_impl() { assert_errors! { r#" struct Foo; impl Foo { fn a() { impl Self { fn b(self) {} } } } "#, span!(83, 87), UnsupportedSelfType, } }