about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-09-13 21:20:19 +0000
committerbors <bors@rust-lang.org>2017-09-13 21:20:19 +0000
commit94211416bcde4d1049f241b6c95594e28c8865e6 (patch)
treee297275cd8200201f04d24b0083fbef2668fde2d /src/rustllvm/RustWrapper.cpp
parent539f2083de809b5c8304fe7426655cfeb0e66d5e (diff)
parente71eef1775f9da8bc2e8d312b83df007b4751ec6 (diff)
downloadrust-94211416bcde4d1049f241b6c95594e28c8865e6.tar.gz
rust-94211416bcde4d1049f241b6c95594e28c8865e6.zip
Auto merge of #44516 - gaurikholkar:fns, r=arielb1
Extend E0623 for fn items

This fixes #44516
The below example now gives
```
error[E0623]: lifetime mismatch
 --> gg.rs:3:10
  |
2 | fn foo(x:fn(&u8, &u8), y: Vec<&u8>, z: &u8) {
  |                               ---      --- these two types are declared with different lifetimes...
3 |   y.push(z);
  |          ^ ...but data from `z` flows into `y` here

error: aborting due to previous error
```

r? @nikomatsakis
cc @arielb1
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions