rust/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.rs

13 lines
244 B
Rust
Raw Normal View History

2018-05-06 22:54:00 +01:00
// run-pass
// Test that inconsistent bounds are used in well-formedness checks
#![feature(trivial_bounds)]
use std::fmt::Debug;
pub fn foo() where Vec<str>: Debug, str: Copy {
let x = vec![*"1"];
println!("{:?}", x);
}
fn main() {}