]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/vec_box_sized.rs
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / vec_box_sized.rs
index 7dc735cd90be7d43f2343d8dfb605edca3e53c5d..843bbb64e71904c4e121bb996b89be293e40b89d 100644 (file)
@@ -9,6 +9,8 @@
 /// The following should trigger the lint
 mod should_trigger {
     use super::SizedStruct;
+    const C: Vec<Box<i32>> = Vec::new();
+    static S: Vec<Box<i32>> = Vec::new();
 
     struct StructWithVecBox {
         sized_type: Vec<Box<SizedStruct>>,