]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/missing_inline.rs
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / missing_inline.rs
index 2b2ea6c94c2679c95078c9733643684a98053d41..07f8e3888c998274b8fa240a6fac1e72fd7f2e10 100644 (file)
@@ -7,8 +7,8 @@
 type Typedef = String;
 pub type PubTypedef = String;
 
-struct Foo {} // ok
-pub struct PubFoo {} // ok
+struct Foo; // ok
+pub struct PubFoo; // ok
 enum FooE {} // ok
 pub enum PubFooE {} // ok
 
@@ -60,3 +60,7 @@ fn FooImpl() {} // ok
 impl PubFoo {
     pub fn PubFooImpl() {} // missing #[inline]
 }
+
+// do not lint this since users cannot control the external code
+#[derive(Debug)]
+pub struct S;