]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-67146-negative-outlives-bound-syntactic-fail.fixed
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / issue-67146-negative-outlives-bound-syntactic-fail.fixed
1 // run-rustfix
2
3 // In this regression test for #67146, we check that the
4 // negative outlives bound `!'a` is rejected by the parser.
5 // This regression was first introduced in PR #57364.
6
7 fn main() {}
8
9 pub fn f1<T>() {}
10 //~^ ERROR negative bounds are not supported
11 pub fn f2<'a, T: Ord>() {}
12 //~^ ERROR negative bounds are not supported
13 pub fn f3<'a, T: Ord>() {}
14 //~^ ERROR negative bounds are not supported