blob: 9efa22b10717f9a8ac8e0555341c9040e2a06448 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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() {}
|