summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/explicit-self-lowercase-param.rs
blob: 7171bd8a42dd2dbbff6380d268037c0503951f1f (plain)
1
2
3
4
5
6
7
8
struct Foo;

impl Foo {
    fn do_nothing(self: Box<self>) {} //~ ERROR attempt to use a non-constant value in a constant
    //~^ HELP try using `Self`
}

fn main() {}