mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Verified ConstArg example, waiting for response on what =
sign pertains to
This commit is contained in:
parent
f6fd4c4a74
commit
71f2be968b
2 changed files with 4 additions and 5 deletions
|
@ -2446,7 +2446,7 @@ impl LifetimeArg {
|
|||
/// Constant value argument that is passed at generic instantiation site.
|
||||
///
|
||||
/// ```
|
||||
/// foo::<❰ u32 ❱, ❰ true ❱>();
|
||||
/// foo::<u32, ❰ { true } ❱>();
|
||||
///
|
||||
/// bar::<❰ { 2 + 2} ❱>();
|
||||
/// ```
|
||||
|
|
|
@ -1966,7 +1966,6 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
///
|
||||
struct AssocTypeArg : TypeBoundsOwner { NameRef, T![=], TypeRef }
|
||||
|
||||
// TODO: verify?
|
||||
/// Lifetime argument that is passed at generic instantiation site.
|
||||
///
|
||||
/// ```
|
||||
|
@ -1978,12 +1977,12 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
/// [Reference](https://doc.rust-lang.org/reference/paths.html#paths-in-expressions)
|
||||
struct LifetimeArg { T![lifetime] }
|
||||
|
||||
// TODO: does this peratain to const generics?
|
||||
// What does equal sign do here?
|
||||
|
||||
// TODO: What does equal sign do here?
|
||||
/// Constant value argument that is passed at generic instantiation site.
|
||||
///
|
||||
/// ```
|
||||
/// foo::<❰ u32 ❱, ❰ true ❱>();
|
||||
/// foo::<u32, ❰ { true } ❱>();
|
||||
///
|
||||
/// bar::<❰ { 2 + 2} ❱>();
|
||||
/// ```
|
||||
|
|
Loading…
Reference in a new issue