<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/parser/self-in-function-arg.stderr, branch 1.56.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.56.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.56.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-02-02T12:32:37+00:00</updated>
<entry>
<title>parser: address review comments re. `self`.</title>
<updated>2020-02-02T12:32:37+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2020-02-02T10:10:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=71a6f58229c00720b35579856bdb64e2a19af521'/>
<id>urn:sha1:71a6f58229c00720b35579856bdb64e2a19af521</id>
<content type='text'>
</content>
</entry>
<entry>
<title>review comments: move back some methods and clean up wording</title>
<updated>2019-05-25T19:15:06+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2019-05-23T20:10:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4e68ddca90a8f3ee580445b1fc83a6a6d0c7f94f'/>
<id>urn:sha1:4e68ddca90a8f3ee580445b1fc83a6a6d0c7f94f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tweak `self` arg not as first argument of a method diagnostic</title>
<updated>2019-05-25T19:05:18+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2019-05-23T19:54:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=976541884f674127c33e08aaaf15c99b735701f7'/>
<id>urn:sha1:976541884f674127c33e08aaaf15c99b735701f7</id>
<content type='text'>
Mention that `self` is only valid on "associated functions"
```
error: unexpected `self` argument in function
  --&gt; $DIR/self-in-function-arg.rs:1:15
   |
LL | fn foo(x:i32, self: i32) -&gt; i32 { self }
   |               ^^^^ not valid as function argument
   |
   = note: `self` is only valid as the first argument of an associated function
```

When it is a method, mention it must be first
```
error: unexpected `self` argument in function
  --&gt; $DIR/trait-fn.rs:4:20
   |
LL |     fn c(foo: u32, self) {}
   |                    ^^^^ must be the first associated function argument
```
</content>
</entry>
</feed>
