rustdoc: run more HIR validation to mirror rustc
This commit is contained in:
parent
8a7ca936e6
commit
9b5115f92b
15 changed files with 146 additions and 0 deletions
10
tests/rustdoc-ui/invalid_associated_const.rs
Normal file
10
tests/rustdoc-ui/invalid_associated_const.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
#![feature(associated_const_equality)]
|
||||
|
||||
trait T {
|
||||
type A: S<C<X = 0i32> = 34>;
|
||||
//~^ ERROR associated type bindings are not allowed here
|
||||
}
|
||||
|
||||
trait S {
|
||||
const C: i32;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue