We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dc5b0e commit 384dadbCopy full SHA for 384dadb
tests/ui/methods/no-auto-borrow-vec-to-slice.rs
@@ -1,8 +1,6 @@
1
-fn main() {
2
-
3
- // Testing that method lookup does not automatically borrow
4
- // vectors to slices then automatically create a self reference.
+//! Tests that method resolution does not automatically borrow `Vec` to a slice or add extra references.
5
+fn main() {
6
let mut a = vec![0];
7
a.test_mut(); //~ ERROR no method named `test_mut` found
8
a.test(); //~ ERROR no method named `test` found
0 commit comments