blob: a08f37c5035f2fff58314f0bbc89b4cd23b78880 [file] [log] [blame]
//@ 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 {
//~^ WARNING Debug does not depend on any type or lifetime
//~| WARNING Copy does not depend on any type or lifetime
let x = vec![*"1"];
println!("{:?}", x);
}
fn main() {}