mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
Rust: add more thourough canonical path testing
This commit is contained in:
@@ -844,12 +844,10 @@ class _:
|
||||
|
||||
|
||||
@annotate(AssocItemList)
|
||||
@qltest.test_with(Trait)
|
||||
class _:
|
||||
"""
|
||||
A AssocItemList. For example:
|
||||
```rust
|
||||
todo!()
|
||||
```
|
||||
A list of `AssocItem` elements, as appearing for example in a `Trait`.
|
||||
"""
|
||||
|
||||
|
||||
@@ -1541,11 +1539,18 @@ class _:
|
||||
|
||||
|
||||
@annotate(Trait)
|
||||
@rust.doc_test_signature(None)
|
||||
class _:
|
||||
"""
|
||||
A Trait. For example:
|
||||
```rust
|
||||
todo!()
|
||||
```
|
||||
trait Frobinizable {
|
||||
type Frobinator;
|
||||
type Result: Copy;
|
||||
fn frobinize_with(&mut self, frobinator: &Self::Frobinator) -> Result;
|
||||
}
|
||||
|
||||
pub trait Foo<T: Frobinizable> where T::Frobinator: Eq {}
|
||||
```
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user