Move assertion-free rustdoc ice tests to rustdoc-ui
This commit is contained in:
16
tests/rustdoc-ui/ice-assoc-type-loop-102154.rs
Normal file
16
tests/rustdoc-ui/ice-assoc-type-loop-102154.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
//@ check-pass
|
||||
// https://github.com/rust-lang/rust/issues/102154
|
||||
|
||||
trait A<Y, N> {
|
||||
type B;
|
||||
}
|
||||
type MaybeBox<T> = <T as A<T, Box<T>>>::B;
|
||||
struct P {
|
||||
t: MaybeBox<P>
|
||||
}
|
||||
impl<Y, N> A<Y, N> for P {
|
||||
type B = N;
|
||||
}
|
||||
fn main() {
|
||||
let t: MaybeBox<P>;
|
||||
}
|
||||
22
tests/rustdoc-ui/ice-method-where-clause-circular-100620.rs
Normal file
22
tests/rustdoc-ui/ice-method-where-clause-circular-100620.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
//@ check-pass
|
||||
// https://github.com/rust-lang/rust/issues/100620
|
||||
|
||||
pub trait Bar<S> {}
|
||||
|
||||
pub trait Qux<T> {}
|
||||
|
||||
pub trait Foo<T, S> {
|
||||
fn bar()
|
||||
where
|
||||
T: Bar<S>,
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Concrete;
|
||||
|
||||
impl<S> Foo<(), S> for Concrete {}
|
||||
|
||||
impl<T, S> Bar<S> for T where S: Qux<T> {}
|
||||
|
||||
impl<T, S> Qux<T> for S where T: Bar<S> {}
|
||||
14
tests/rustdoc-ui/ice-unresolved-import-100241.rs
Normal file
14
tests/rustdoc-ui/ice-unresolved-import-100241.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
//! See [`S`].
|
||||
|
||||
// Check that this isn't an ICE
|
||||
//@ should-fail
|
||||
|
||||
// https://github.com/rust-lang/rust/issues/100241
|
||||
|
||||
mod foo {
|
||||
pub use inner::S;
|
||||
//~^ ERROR unresolved imports `inner`, `foo::S`
|
||||
}
|
||||
|
||||
use foo::*;
|
||||
use foo::S;
|
||||
Reference in New Issue
Block a user