2018-10-13 16:23:42 +02:00
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
trait Foo { }
|
|
|
|
|
|
|
|
#[rustc_dump_program_clauses] //~ ERROR program clause dump
|
2018-10-31 18:55:40 +01:00
|
|
|
struct S<'a, T: ?Sized> where T: Foo {
|
2018-10-13 16:23:42 +02:00
|
|
|
data: &'a T,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[rustc_dump_env_program_clauses] //~ ERROR program clause dump
|
2018-10-31 18:55:40 +01:00
|
|
|
fn bar<T: Foo>(_x: S<'_, T>) { // note that we have an implicit `T: Sized` bound
|
2018-10-13 16:23:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|