/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ /** ``` extern crate malloc_size_of; extern crate servo_arc; fn sizeable() {} fn shallow_sizeable() {} fn cloneable() {} fn main() { cloneable::>(); cloneable::>(); cloneable::>(); } ``` */ pub fn imports_ok() {} pub mod does_not_impl_malloc_size_of { /** ```compile_fail,E0277 extern crate malloc_size_of; extern crate servo_arc; fn sizeable() {} fn main() { sizeable::>(); } ``` */ pub fn servo_arc() {} /** ```compile_fail,E0277 extern crate malloc_size_of; fn sizeable() {} fn main() { sizeable::>(); } ``` */ pub fn std_arc() {} /** ```compile_fail,E0277 extern crate malloc_size_of; fn sizeable() {} fn main() { sizeable::>(); } ``` */ pub fn rc() {} } pub mod does_not_impl_malloc_shallow_size_of { /** ```compile_fail,E0277 extern crate malloc_size_of; extern crate servo_arc; fn shallow_sizeable() {} fn main() { shallow_sizeable::>(); } ``` */ pub fn servo_arc() {} /** ```compile_fail,E0277 extern crate malloc_size_of; fn shallow_sizeable() {} fn main() { shallow_sizeable::>(); } ``` */ pub fn std_arc() {} /** ```compile_fail,E0277 extern crate malloc_size_of; fn shallow_sizeable() {} fn main() { shallow_sizeable::>(); } ``` */ pub fn rc() {} }