summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/fn-new-doesnt-exist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/fn-new-doesnt-exist.rs')
-rw-r--r--tests/ui/resolve/fn-new-doesnt-exist.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/resolve/fn-new-doesnt-exist.rs b/tests/ui/resolve/fn-new-doesnt-exist.rs
new file mode 100644
index 000000000..4f6290808
--- /dev/null
+++ b/tests/ui/resolve/fn-new-doesnt-exist.rs
@@ -0,0 +1,5 @@
+use std::net::TcpStream;
+
+fn main() {
+ let stream = TcpStream::new(); //~ ERROR no function or associated item named `new` found
+}