mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 17:40:16 +00:00
13 lines
322 B
Rust
13 lines
322 B
Rust
//! Regression test for <https://github.com/rust-lang/rust/issues/41744>.
|
|
//! This used to trigger LLVM assertion
|
|
//! `SrcTy must be larger than DestTy for Trunc`
|
|
//! because of a redundant truncate call when value is boolean.
|
|
//@ run-pass
|
|
|
|
trait Tc {}
|
|
impl Tc for bool {}
|
|
|
|
fn main() {
|
|
let _: &[&dyn Tc] = &[&true];
|
|
}
|