mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
37 lines
546 B
Rust
37 lines
546 B
Rust
use super::regular::Trait;
|
|
|
|
fn canonicals() {
|
|
struct OtherStruct;
|
|
|
|
trait OtherTrait {
|
|
fn g(&self);
|
|
}
|
|
|
|
impl OtherTrait for OtherStruct {
|
|
fn g(&self) {}
|
|
}
|
|
|
|
impl OtherTrait for crate::regular::Struct {
|
|
fn g(&self) {}
|
|
}
|
|
|
|
impl crate::regular::Trait for OtherStruct {
|
|
fn f(&self) {}
|
|
}
|
|
|
|
fn nested() {
|
|
struct OtherStruct;
|
|
}
|
|
|
|
fn usage() {
|
|
let s = OtherStruct {};
|
|
s.f();
|
|
s.g();
|
|
nested();
|
|
}
|
|
}
|
|
|
|
fn other() {
|
|
struct OtherStruct;
|
|
}
|