granite-rust/tests/rustdoc/inherent-projections.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
332 B
Rust
Raw Normal View History

2023-03-21 01:46:52 +01:00
#![feature(inherent_associated_types)]
#![allow(incomplete_features)]
// FIXME(fmease): Properly render inherent projections.
// @has inherent_projections/fn.create.html
// @has - '//pre[@class="rust item-decl"]' "create() -> _"
pub fn create() -> Owner::Metadata {}
pub struct Owner;
impl Owner {
pub type Metadata = ();
}