summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-30438-c.stderr
blob: 7c001088097ab54618608442b4772da575b36b7e (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 previous error

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