]> git.lizzy.rs Git - rust.git/blob - tests/ui/single-use-lifetime/issue-104440.stderr
Rollup merge of #106978 - mejrs:mir_build3, r=davidtwco
[rust.git] / tests / ui / single-use-lifetime / issue-104440.stderr
1 error: lifetime parameter `'a` only used once
2   --> $DIR/issue-104440.rs:63:8
3    |
4 LL |     m!('a);
5    |        ^^
6    |        |
7    |        this lifetime...
8    |        ...is used only here
9    |
10 note: the lint level is defined here
11   --> $DIR/issue-104440.rs:2:9
12    |
13 LL | #![deny(single_use_lifetimes)]
14    |         ^^^^^^^^^^^^^^^^^^^^
15
16 error: lifetime parameter `'a` only used once
17   --> $DIR/issue-104440.rs:38:30
18    |
19 LL |         fn f<'b, 'c, $a: 'b, 'a: 'c>(t1: &$a(), t2: &'a ()) -> (&'b (), &'c ()) {
20    |                              ^^ this lifetime...     -- ...is used only here
21 ...
22 LL |     m!('a);
23    |     ------ in this macro invocation
24    |
25    = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
26
27 error: aborting due to 2 previous errors
28