Add test for issue-51798

This commit is contained in:
Yuki Okushi 2020-02-16 02:54:16 +09:00
parent 6351bfd182
commit f32447d541
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#![crate_type = "lib"]
pub fn vec() -> Vec<u8> { vec![] }

View File

@ -0,0 +1,14 @@
// edition:2018
// aux-build:issue-51798.rs
// check-pass
extern crate issue_51798;
mod server {
fn f() {
let mut v = issue_51798::vec();
v.clear();
}
}
fn main() {}