error: unknown `doc` attribute `as_ptr`
  --> $DIR/doc-attr-2.rs:5:7
   |
LL | #[doc(as_ptr)]
   |       ^^^^^^
   |
note: the lint level is defined here
  --> $DIR/doc-attr-2.rs:1:9
   |
LL | #![deny(invalid_doc_attributes)]
   |         ^^^^^^^^^^^^^^^^^^^^^^

error: unknown `doc` attribute `foo::bar`
  --> $DIR/doc-attr-2.rs:9:7
   |
LL | #[doc(foo::bar, crate::bar::baz = "bye")]
   |       ^^^^^^^^

error: unknown `doc` attribute `crate::bar::baz`
  --> $DIR/doc-attr-2.rs:9:17
   |
LL | #[doc(foo::bar, crate::bar::baz = "bye")]
   |                 ^^^^^^^^^^^^^^^

error: unknown `doc` attribute `as_ptr`
  --> $DIR/doc-attr-2.rs:2:8
   |
LL | #![doc(as_ptr)]
   |        ^^^^^^

error: aborting due to 4 previous errors

