about summary refs log tree commit diff
path: root/tests/rustdoc-ui/intra-doc/type-alias-primitive.rs
blob: 62b2c83eeca47e7f48ee3039da8971a7aff5bd59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Ensure that no warning is emitted if the disambiguator is used for type alias.
// Regression test for <https://github.com/rust-lang/rust/issues/146855>.

//@ check-pass

#![deny(rustdoc::broken_intra_doc_links)]

pub struct Foo;

#[allow(non_camel_case_types)]
pub type f32 = Foo;

/// This function returns [`tyalias@f32`] and not [`prim@f32`].
pub fn my_fn() -> f32 {}