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

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

9 lines
257 B
Plaintext
Raw Normal View History

2023-05-11 11:25:01 +00:00
error: attempt to use a non-constant value in a constant
--> $DIR/explicit-self-lowercase-param.rs:4:29
|
LL | fn do_nothing(self: Box<self>) {}
| ^^^^ help: try using `Self`
error: aborting due to 1 previous error
2023-05-11 11:25:01 +00:00