diff --git a/src/test/ui/chalkify/lower_struct.rs b/src/test/ui/chalkify/lower_struct.rs new file mode 100644 index 000000000000..9287555a0568 --- /dev/null +++ b/src/test/ui/chalkify/lower_struct.rs @@ -0,0 +1,18 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![feature(rustc_attrs)] + +#[rustc_dump_program_clauses] //~ ERROR program clause dump +struct Foo where Box: Clone { + _x: std::marker::PhantomData, +} + +fn main() { } diff --git a/src/test/ui/chalkify/lower_struct.stderr b/src/test/ui/chalkify/lower_struct.stderr new file mode 100644 index 000000000000..d6cc9c8e9a40 --- /dev/null +++ b/src/test/ui/chalkify/lower_struct.stderr @@ -0,0 +1,12 @@ +error: program clause dump + --> $DIR/lower_struct.rs:13:1 + | +LL | #[rustc_dump_program_clauses] //~ ERROR program clause dump + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: FromEnv(T: std::marker::Sized) :- FromEnv(Foo). + = note: FromEnv(std::boxed::Box: std::clone::Clone) :- FromEnv(Foo). + = note: WellFormed(Foo) :- Implemented(T: std::marker::Sized), Implemented(std::boxed::Box: std::clone::Clone). + +error: aborting due to previous error +