<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/suggestions/const-pat-non-exaustive-let-new-var.stderr, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-04-30T07:44:24+00:00</updated>
<entry>
<title>compiletest: Make diagnostic kind mandatory on line annotations</title>
<updated>2025-04-30T07:44:24+00:00</updated>
<author>
<name>Vadim Petrochenkov</name>
<email>vadim.petrochenkov@gmail.com</email>
</author>
<published>2025-04-05T16:19:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=20faf8532b5ddeb636ba3078344b0cad058c8f8a'/>
<id>urn:sha1:20faf8532b5ddeb636ba3078344b0cad058c8f8a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Trim suggestion parts to the subset that is purely additive</title>
<updated>2025-02-14T08:44:10+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-13T03:21:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6d71251cf9e40326461f90f8ff9a7024706aea87'/>
<id>urn:sha1:6d71251cf9e40326461f90f8ff9a7024706aea87</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use underline suggestions for purely 'additive' replacements</title>
<updated>2025-02-14T08:27:13+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2025-02-13T02:54:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b480a9214a7037813d29bc04d9e9dbe92ce10cf3'/>
<id>urn:sha1:b480a9214a7037813d29bc04d9e9dbe92ce10cf3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Show diff suggestion format on verbose replacement</title>
<updated>2025-02-10T20:21:39+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-07-09T22:30:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f0845adb0c1b7a7fa1bef73e749b2d7e1d7f374d'/>
<id>urn:sha1:f0845adb0c1b7a7fa1bef73e749b2d7e1d7f374d</id>
<content type='text'>
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --&gt; $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
</content>
</entry>
<entry>
<title>Update tests for new TRPL chapter order</title>
<updated>2024-11-23T15:57:25+00:00</updated>
<author>
<name>Chris Krycho</name>
<email>hello@chriskrycho.com</email>
</author>
<published>2024-10-30T19:08:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d4275e08e7f73efabb2c41ceb27020c6f9005a68'/>
<id>urn:sha1:d4275e08e7f73efabb2c41ceb27020c6f9005a68</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make suggestion verbose</title>
<updated>2024-11-17T23:40:00+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-11-07T19:40:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f1772d57399272f69fa69ad10ae21d380efc2e7e'/>
<id>urn:sha1:f1772d57399272f69fa69ad10ae21d380efc2e7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Point at `const` definition when used instead of a binding in a `let` statement</title>
<updated>2024-11-17T23:39:59+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-11-06T19:46:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ff2f7a7a834843ea74b1e7d6511eb4ad06f43981'/>
<id>urn:sha1:ff2f7a7a834843ea74b1e7d6511eb4ad06f43981</id>
<content type='text'>
After:

```
error[E0005]: refutable pattern in local binding
  --&gt; $DIR/bad-pattern.rs:19:13
   |
LL |     const PAT: u32 = 0;
   |     -------------- missing patterns are not covered because `PAT` is interpreted as a constant pattern, not a new variable
...
LL |         let PAT = v1;
   |             ^^^
   |             |
   |             pattern `1_u32..=u32::MAX` not covered
   |             help: introduce a variable instead: `PAT_var`
   |
   = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
   = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
   = note: the matched value is of type `u32`
```

Before:

```
error[E0005]: refutable pattern in local binding
  --&gt; $DIR/bad-pattern.rs:19:13
   |
LL |         let PAT = v1;
   |             ^^^
   |             |
   |             pattern `1_u32..=u32::MAX` not covered
   |             missing patterns are not covered because `PAT` is interpreted as a constant pattern, not a new variable
   |             help: introduce a variable instead: `PAT_var`
   |
   = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
   = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
   = note: the matched value is of type `u32`
```
</content>
</entry>
<entry>
<title>Show number in error message even for one error</title>
<updated>2023-11-24T18:15:52+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2023-11-21T15:44:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=41e8d152dc5abb5a706999ada8b059d3420af8f3'/>
<id>urn:sha1:41e8d152dc5abb5a706999ada8b059d3420af8f3</id>
<content type='text'>
Co-authored-by: Adrian &lt;adrian.iosdev@gmail.com&gt;
</content>
</entry>
<entry>
<title>Reinstate confusion note.</title>
<updated>2023-04-03T15:59:21+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2023-02-27T20:50:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4f97540432445c7e0dc4eb51e3ac5fd915d225ad'/>
<id>urn:sha1:4f97540432445c7e0dc4eb51e3ac5fd915d225ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Perform match checking on THIR.</title>
<updated>2023-04-03T15:59:21+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2023-02-27T17:43:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=05082f57afbf5d2e8fd7fb67719336d78b58e759'/>
<id>urn:sha1:05082f57afbf5d2e8fd7fb67719336d78b58e759</id>
<content type='text'>
</content>
</entry>
</feed>
