mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
15 lines
369 B
Rust
15 lines
369 B
Rust
// 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() {}
|