mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
f784fa7bd9
Done by removing all uses of `#![no_core]`, and the reverting the ones that failed. More involved ones are in a later commit.
19 lines
1.5 KiB
Rust
19 lines
1.5 KiB
Rust
// ignore-tidy-linelength
|
|
|
|
// @count "$.index[*][?(@.name=='foo')].inner.function.generics.params[*]" 3
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.generics.where_predicates" []
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.generics.params[0].name" \"\'a\"
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.generics.params[1].name" \"\'b\"
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.generics.params[2].name" '"T"'
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.generics.params[0].kind.lifetime.outlives" []
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.generics.params[1].kind.lifetime.outlives" [\"\'a\"]
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.generics.params[2].kind.type.default" null
|
|
// @count "$.index[*][?(@.name=='foo')].inner.function.generics.params[2].kind.type.bounds[*]" 1
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.generics.params[2].kind.type.bounds[0].outlives" \"\'b\"
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.decl.inputs[0][1].borrowed_ref.lifetime" \"\'a\"
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.decl.inputs[0][1].borrowed_ref.mutable" false
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.decl.inputs[0][1].borrowed_ref.type.borrowed_ref.lifetime" \"\'b\"
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.decl.inputs[0][1].borrowed_ref.type.borrowed_ref.mutable" false
|
|
// @is "$.index[*][?(@.name=='foo')].inner.function.decl.inputs[0][1].borrowed_ref.type.borrowed_ref.type.generic" \"T\"
|
|
pub fn foo<'a, 'b: 'a, T: 'b>(_: &'a &'b T) {}
|