Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
parser
/
bounds-type.rs
blob: 9122cb49ebc1a47731a634b6df8f0c9ee8436511 [
file
] [
log
] [
blame
]
// compile-flags: -Z parse-only
struct
S
<
T
:
'
a
+
Tr
,
// OK
T
:
Tr
+
'
a
,
// OK
T
:
'
a
,
// OK
T
:,
// OK
T
:
?
for
<
'
a
>
Trait
,
// OK
T
:
Tr
+,
// OK
T
:
?
'
a
,
//~ ERROR `?` may only modify trait bounds, not lifetime bounds
>;
fn
main
()
{}