]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/infinite-instantiation.rs
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / test / compile-fail / infinite-instantiation.rs
index 9b02bf4cb85a8744dddd64a452bca81da8ae022b..28806b6e2ab8cbd39eceb141c533e71e0abd2b61 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-//~^^^^^^^^^^ ERROR overflow
 //
 // We get an error message at the top of file (dummy span).
 // This is not helpful, but also kind of annoying to prevent,
@@ -32,6 +31,7 @@ impl<T:Clone> ToOpt for Option<T> {
 }
 
 fn function<T:ToOpt + Clone>(counter: usize, t: T) {
+//~^ ERROR reached the recursion limit during monomorphization
     if counter > 0 {
         function(counter - 1, t.to_option());
         // FIXME(#4287) Error message should be here. It should be