rust/tests/ui/static/issue-18118.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
127 B
Rust
Raw Normal View History

2014-10-25 22:07:41 +00:00
pub fn main() {
const z: &'static isize = {
2014-10-25 22:07:41 +00:00
let p = 3;
&p //~ ERROR `p` does not live long enough
2014-10-25 22:07:41 +00:00
};
}