]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/rustfmt/tests/target/impls.rs
:arrow_up: rust-analyzer
[rust.git] / src / tools / rustfmt / tests / target / impls.rs
index bf63f924a33b0d18aa74b7127da01c155496314d..99e02990e417775ba8a9821a501e9ce0d4f0f960 100644 (file)
@@ -21,6 +21,14 @@ fn foo() {
     // Comment 3
 }
 
+#[inherent]
+impl Visible for Bar {
+    pub const C: i32;
+    pub type T;
+    pub fn f();
+    pub fn g() {}
+}
+
 pub unsafe impl<'a, 'b, X, Y: Foo<Bar>> !Foo<'a, X> for Bar<'b, Y>
 where
     X: Foo<'a, Z>,