E0111
A self or var self receiver that is not the first parameter.
Machine-applicable fix: none.
Example
This program fails with E0111.
struct Counter { count: Int }
impl Counter {
fn add(n: Int, self) -> Int {
self.count + n
}
}
Fixed
The same program, fixed.
struct Counter { count: Int }
impl Counter {
fn add(self, n: Int) -> Int {
self.count + n
}
}
Listed in the checker notes. oskac explain E0111 prints this entry offline.