diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/macros/issue-68060.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/macros/issue-68060.rs b/src/test/ui/macros/issue-68060.rs new file mode 100644 index 000000000..aa8f578ad --- /dev/null +++ b/src/test/ui/macros/issue-68060.rs @@ -0,0 +1,11 @@ +fn main() { + (0..) + .map( + #[target_feature(enable = "")] + //~^ ERROR: attribute should be applied to a function + #[track_caller] + |_| (), + //~^ NOTE: not a function + ) + .next(); +} |