mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
21 lines
379 B
Rust
21 lines
379 B
Rust
// This test ensures that associated types don't crash rustdoc jump to def.
|
|
|
|
//@ compile-flags: -Zunstable-options --generate-link-to-definition
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
//@ has 'src/foo/jump-to-def-ice-assoc-types.rs.html'
|
|
|
|
pub trait Trait {
|
|
type Node;
|
|
}
|
|
|
|
pub fn y<G: Trait>() {
|
|
struct X<G>(G);
|
|
|
|
impl<G: Trait> Trait for X<G> {
|
|
type Node = G::Node;
|
|
}
|
|
}
|