Make functions in impl have a container name

fixes #16015
This commit is contained in:
Jimmy Miller 2023-12-17 10:10:13 -05:00
parent 21b06c1beb
commit b67b352ac7
3 changed files with 115 additions and 44 deletions

View file

@ -414,6 +414,12 @@ impl Struct {
fn impl_fn() {}
}
struct StructT<T>;
impl <T> StructT<T> {
fn generic_impl_fn() {}
}
trait Trait {
fn trait_fn(&self);
}