rust/tests/ui/resolve/explicit-self-lowercase-param.rs

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

9 lines
169 B
Rust
Raw Normal View History

2023-05-11 06:25:01 -05:00
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() {}