summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-30438-c.stderr
blob: c8ca2bff74e50701c3d4b8e5ea1a054fe074131a (plain)
1
2
3
4
5
6
7
8
9
error[E0515]: cannot return reference to local variable `x`
  --> $DIR/issue-30438-c.rs:9:5
   |
LL |     &x
   |     ^^ returns a reference to data owned by the current function

error: aborting due to 1 previous error

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