We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c28d1 commit 3a4d93cCopy full SHA for 3a4d93c
tests/ui/needless_lifetimes.rs
@@ -495,4 +495,19 @@ mod pr_9743_output_lifetime_checks {
495
}
496
497
498
+mod skip_inside_macros {
499
+ #![allow(unused)]
500
+
501
+ macro_rules! print_with_one_input {
502
+ ($a:expr) => {
503
+ fn print_with_one_input<'a>(x: &'a u8) -> &'a u8 {
504
+ println!("{}", $a);
505
+ unimplemented!()
506
+ }
507
+ };
508
509
510
+ print_with_one_input!("this is a dandy little string literal");
511
+}
512
513
fn main() {}
0 commit comments