mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Diagnose incorrect usages of the question mark operator
This commit is contained in:
parent
8406380b5a
commit
381366f1dd
13 changed files with 289 additions and 125 deletions
|
@ -259,6 +259,7 @@ macro_rules! __known_path {
|
|||
(core::future::Future) => {};
|
||||
(core::future::IntoFuture) => {};
|
||||
(core::ops::Try) => {};
|
||||
(core::ops::FromResidual) => {};
|
||||
($path:path) => {
|
||||
compile_error!("Please register your known path in the path module")
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue