Commit 8313e9b
authored
Rollup merge of #145903 - Kivooeo:c-style-pointer, r=davidtwco
Give correct suggestion for a typo in raw pointers
This adds a check for when user wrote `const* T` instead of `*const T`, I just saw how a C-person made this typo and compiler suggests this
```rust
--> src/main.rs:2:17
|
2 | let p: const* u8 = 0 as _;
| ^
|
help: add `mut` or `const` here
|
2 | let p: const*mut u8 = 0 as _;
| +++
2 | let p: const*const u8 = 0 as _;
| +++++
```
which is very incorrect
also fixes rust-lang/rust#136602
r? compilerFile tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed
0 commit comments