]> git.lizzy.rs Git - rust.git/blob - src/test/ui/chalkify/lower_trait_where_clause.rs
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / chalkify / lower_trait_where_clause.rs
1 // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![feature(rustc_attrs)]
12
13 use std::fmt::{Debug, Display};
14 use std::borrow::Borrow;
15
16 #[rustc_dump_program_clauses] //~ ERROR program clause dump
17 trait Foo<'a, 'b, S, T, U>
18 where
19     S: Debug,
20     T: Borrow<U>,
21     U: ?Sized,
22     'a: 'b,
23     U: 'b,
24     Vec<T>:, // NOTE(#53696) this checks an empty list of bounds.
25 {
26     fn s(_: S) -> S;
27     fn t(_: T) -> T;
28     fn u(_: U) -> U;
29 }
30
31 fn main() {
32     println!("hello");
33 }