Skip to content

Commit 10a1f5b

Browse files
committed
add minimized test for issue rust-lang#116539
1 parent 7b4ac2f commit 10a1f5b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/rustdoc/issue-116539.rs

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Regression test for <https://github.com/rust-lang/rust/issues/116539>.
2+
#![no_std]
3+
#![crate_name = "foo"]
4+
5+
trait IdentifyAccount {
6+
type A;
7+
}
8+
struct RealSigner {}
9+
10+
impl IdentifyAccount for RealSigner {
11+
type A = u32;
12+
}
13+
14+
type RealAccountId = <RealSigner as IdentifyAccount>::A;
15+
16+
trait BaseConfig {
17+
type B;
18+
}
19+
20+
trait Config: BaseConfig<B = RealAccountId> {}
21+
22+
struct GenesisConfig<T: Config> {
23+
shelves: [<T as BaseConfig>::B; 2],
24+
}

0 commit comments

Comments
 (0)