]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/infinite-instantiation.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / infinite-instantiation.rs
index 28806b6e2ab8cbd39eceb141c533e71e0abd2b61..08e6bf2469117179b8584954ab81a57943edb670 100644 (file)
@@ -31,7 +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
+//~^ ERROR reached the recursion limit while instantiating `function::<std::option::Option<
     if counter > 0 {
         function(counter - 1, t.to_option());
         // FIXME(#4287) Error message should be here. It should be