diff options
| author | bors <bors@rust-lang.org> | 2017-09-13 21:20:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-09-13 21:20:19 +0000 |
| commit | 94211416bcde4d1049f241b6c95594e28c8865e6 (patch) | |
| tree | e297275cd8200201f04d24b0083fbef2668fde2d /src/rustllvm/RustWrapper.cpp | |
| parent | 539f2083de809b5c8304fe7426655cfeb0e66d5e (diff) | |
| parent | e71eef1775f9da8bc2e8d312b83df007b4751ec6 (diff) | |
| download | rust-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
