Skip to content

Commit 6667c66

Browse files
committed
Add test for an unmotivated "cannot determine resolution" error
1 parent 20328b5 commit 6667c66

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
use std as line;
2+
3+
const C: u32 = line!(); //~ ERROR cannot determine resolution for the macro `line`
4+
5+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error: cannot determine resolution for the macro `line`
2+
--> $DIR/macro-determinacy-non-module.rs:3:16
3+
|
4+
LL | const C: u32 = line!();
5+
| ^^^^
6+
|
7+
= note: import resolution is stuck, try simplifying macro imports
8+
9+
error: aborting due to previous error
10+

0 commit comments

Comments
 (0)