mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Implement toString on type aliases and add docs
This commit is contained in:
@@ -1123,9 +1123,12 @@ class _:
|
||||
@annotate(GenericParamList)
|
||||
class _:
|
||||
"""
|
||||
A GenericParamList. For example:
|
||||
A list of generic parameters. For example:
|
||||
```rust
|
||||
todo!()
|
||||
fn f<A, B>(a: A, b: B) {}
|
||||
// ^^^^^^
|
||||
type Foo<T1, T2> = (T1, T2);
|
||||
// ^^^^^^^^
|
||||
```
|
||||
"""
|
||||
|
||||
@@ -1705,9 +1708,14 @@ class _:
|
||||
@annotate(TypeAlias)
|
||||
class _:
|
||||
"""
|
||||
A TypeAlias. For example:
|
||||
A type alias. For example:
|
||||
```rust
|
||||
todo!()
|
||||
type Point = (u8, u8);
|
||||
|
||||
trait Trait {
|
||||
type Output;
|
||||
// ^^^^^^^^^^^
|
||||
}
|
||||
```
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user