04c2454b1e
Change suggestion logic to filter and checking _before_ creating specific resolution suggestion. Assert earlier that suggestions contain code substitions to make it easier in the future to debug invalid uses. If we find this becomes too noisy in the wild, we can always make the emitter resilient to these cases and remove the assertions. Fix #78651.
6 lines
169 B
Rust
6 lines
169 B
Rust
use std::result;
|
|
impl result { //~ ERROR expected type, found module `result`
|
|
fn into_future() -> Err {} //~ ERROR expected type, found variant `Err`
|
|
}
|
|
fn main() {}
|