summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/undeclared-module-alloc.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/undeclared-module-alloc.stderr')
-rw-r--r--tests/ui/suggestions/undeclared-module-alloc.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/suggestions/undeclared-module-alloc.stderr b/tests/ui/suggestions/undeclared-module-alloc.stderr
new file mode 100644
index 000000000..39169dfa9
--- /dev/null
+++ b/tests/ui/suggestions/undeclared-module-alloc.stderr
@@ -0,0 +1,11 @@
+error[E0433]: failed to resolve: use of undeclared crate or module `alloc`
+ --> $DIR/undeclared-module-alloc.rs:3:5
+ |
+LL | use alloc::rc::Rc;
+ | ^^^^^ use of undeclared crate or module `alloc`
+ |
+ = help: add `extern crate alloc` to use the `alloc` crate
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0433`.