1
Fork 0

Add test for an unmotivated "cannot determine resolution" error

This commit is contained in:
Vadim Petrochenkov 2020-11-22 14:20:16 +03:00
parent 20328b5323
commit 6667c6637d
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,5 @@
use std as line;
const C: u32 = line!(); //~ ERROR cannot determine resolution for the macro `line`
fn main() {}

View file

@ -0,0 +1,10 @@
error: cannot determine resolution for the macro `line`
--> $DIR/macro-determinacy-non-module.rs:3:16
|
LL | const C: u32 = line!();
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: aborting due to previous error