1 // https://github.com/rust-lang/rust-clippy/issues/3969
2 // used to crash: error: internal compiler error:
3 // src/librustc_traits/normalize_erasing_regions.rs:43: could not fully normalize `<i32 as
4 // std::iter::Iterator>::Item test from rustc ./ui/trivial-bounds/trivial-bounds-inconsistent.rs
6 // Check that tautalogically false bounds are accepted, and are used
8 #![feature(trivial_bounds)]
15 struct Dst<X: ?Sized> {
19 struct TwoStrs(str, str)
25 for<'a> Dst<A + 'a>: Sized,
27 let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>);
30 fn return_str() -> str
34 *"Sized".to_string().into_boxed_str()
37 fn use_op(s: String) -> String
39 String: ::std::ops::Neg<Output = String>,