Add test for issue-51798
This commit is contained in:
parent
6351bfd182
commit
f32447d541
3
src/test/ui/issues/auxiliary/issue-51798.rs
Normal file
3
src/test/ui/issues/auxiliary/issue-51798.rs
Normal file
@ -0,0 +1,3 @@
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn vec() -> Vec<u8> { vec![] }
|
14
src/test/ui/issues/issue-51798.rs
Normal file
14
src/test/ui/issues/issue-51798.rs
Normal 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() {}
|
Loading…
Reference in New Issue
Block a user