Use the more informative generic type inference failure error on method calls on raw pointers

This commit is contained in:
Oli Scherer
2024-03-20 10:25:13 +00:00
parent 200e3f7995
commit 958a02247a
10 changed files with 79 additions and 48 deletions

View File

@@ -1,8 +1,10 @@
#### Note: this error code is no longer emitted by the compiler.
A method was called on a raw pointer whose inner type wasn't completely known.
Erroneous code example:
```compile_fail,edition2018,E0699
```compile_fail,edition2018
# #![deny(warnings)]
# fn main() {
let foo = &1;