Why deref coersion doesn't work for nested Vec?

后端 未结 0 446
北荒
北荒 2021-01-03 06:25

One can pass a Vec to function expecting a slice with implicit coersion:

fn foo(arg: &[u8]) {}

foo(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题