about summary refs log tree commit diff
path: root/tests/ui/cmse-nonsecure/cmse-nonsecure-call/undeclared-lifetime.stderr
blob: 7300bdb72cdda1b8d17d702a5c8a276e4998b96c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0261]: use of undeclared lifetime name `'a`
  --> $DIR/undeclared-lifetime.rs:15:43
   |
LL |     id::<extern "cmse-nonsecure-call" fn(&'a ())>(PhantomData);
   |                                           ^^ undeclared lifetime
   |
   = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
help: consider making the type lifetime-generic with a new `'a` lifetime
   |
LL |     id::<for<'a> extern "cmse-nonsecure-call" fn(&'a ())>(PhantomData);
   |          +++++++
help: consider introducing lifetime `'a` here
   |
LL | fn foo<'a>() {
   |       ++++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0261`.