about summary refs log tree commit diff
path: root/tests/rustdoc/jump-to-def-ice.rs
blob: 5578b9af3d74f463bb4ec6232905cbdfc5af361f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// This test ensures that items with no body don't panic when generating
// jump to def links.

//@ compile-flags: -Zunstable-options --generate-link-to-definition

#![crate_name = "foo"]

//@ has 'src/foo/jump-to-def-ice.rs.html'

pub trait A {
    type T;
    type U;
}

impl A for () {
    type T = Self::U;
    type U = ();
}

pub trait C {
    type X;
}

pub struct F<T: C>(pub T::X);