diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2017-04-21 00:19:06 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2017-04-21 21:32:44 +0300 |
| commit | 6e75def7dba6ee28660b8479f0ede72986c299f7 (patch) | |
| tree | 3fb0cfafe35d43056786593e5593c74bb76a9fbd /src/test | |
| parent | e038f58105cc1769a9c7991981822d01ebffe277 (diff) | |
Fix issue with single question mark or paren
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/parse-fail/bound-single-question-mark.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/parse-fail/bound-single-question-mark.rs b/src/test/parse-fail/bound-single-question-mark.rs new file mode 100644 index 00000000000..9dde5268c08 --- /dev/null +++ b/src/test/parse-fail/bound-single-question-mark.rs @@ -0,0 +1,13 @@ +// Copyright 2017 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 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-flags: -Z parse-only + +fn f<T: ?>() {} //~ ERROR expected identifier, found `>` |
