Christopher Lloyd's Doc Brown character from the Back to the Future movies will make a cameo appearance in Seth MacFarlane's upcoming movie A Million Ways to Die in the West.

In a new teaser trailer for the film MacFarlane's character comes across time travelling Doc Brown attempting to hide his DeLorean time machine in a barn.

MacFarlane also tweeted a picture on set with Christopher Lloyd with the caption, " Well, since the cat's outta the bag..."

A Million Ways to Die in the West is a comedy set in Arizona in the 1880s and also stars Charlize Theron, Amanda Seyfriend, Liam Neeson and Neil Patrick Harris. It's set to hit cinemas on June 6.

See Doc Brown in action here: