]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-33418.rs
Auto merge of #58077 - Nemo157:generator-state-debug-info, r=Zoxc
[rust.git] / src / test / ui / parser / issue-33418.rs
1 // run-rustfix
2
3 trait Tr: !SuperA {} //~ ERROR negative trait bounds are not supported
4 trait Tr2: SuperA + !SuperB {} //~ ERROR negative trait bounds are not supported
5 trait Tr3: !SuperA + SuperB {} //~ ERROR negative trait bounds are not supported
6 trait Tr4: !SuperA + SuperB //~ ERROR negative trait bounds are not supported
7     + !SuperC + SuperD {}
8 trait Tr5: !SuperA //~ ERROR negative trait bounds are not supported
9     + !SuperB {}
10
11 trait SuperA {}
12 trait SuperB {}
13 trait SuperC {}
14 trait SuperD {}
15
16 fn main() {}