mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 19:16:36 +00:00
25 lines
390 B
Rust
25 lines
390 B
Rust
// 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);
|